#504B8F

Closest named color: Twilight (#4E518B). oklch(45.1% 0.109 284.5), rgb(80, 75, 143).

Aa

White text reads best on this color (7.65:1).

About this color

#504B8F is a medium-dark, moderately saturated purple. In OKLCH its lightness is 45%, its chroma 0.109 and its hue 285°. Its hue sits on the cool side of the wheel. The nearest named color is Twilight (#4E518B), ΔE 0.019 away. White text reads best on it, at 7.65:1.

Hue familyPurples
Lightnessmedium-dark (45%)
Chromamoderately saturated (0.109)
Temperaturecool
Nearest nameTwilight (#4E518B)
Black text2.74:1
White text7.65:1

Values

HEX#504B8F
RGBrgb(80, 75, 143)
HSLhsl(244, 31%, 43%)
OKLCHoklch(45.1% 0.109 284.5)

Contrast

WCAG 2 contrast ratios are the conformance target: AA needs 4.5:1 for body text and 3:1 for large text, AAA needs 7:1. APCA Lc values are supplementary guidance from the WCAG 3 drafts.

PairWCAG 2ResultAPCAAPCA guidance
White text on #504B8F 7.65:1 AAA Lc -91.2 Preferred for body text
Black text on #504B8F 2.74:1 Fails Lc 17.6 Dividers and decoration only
#504B8F text on white 7.65:1 AAA Lc 86.4 Fine for body text
#504B8F text on black 2.74:1 Fails Lc -15.6 Dividers and decoration only

Tints and shades

A 50–950 scale built in OKLCH: the hue is held, lightness follows a Tailwind v4-like curve, and every step is kept inside the sRGB gamut. This color sits at step 800.

  1. Step 50

    50

    #F4F5FB

    oklch(97.1% 0.008 278.6)

  2. Step 100

    100

    #E8E8F6

    oklch(93.5% 0.019 286)

  3. Step 200

    200

    #D6D6F0

    oklch(88.4% 0.036 285.7)

  4. Step 300

    300

    #BBBCE9

    oklch(81% 0.063 283.9)

  5. Step 400

    400

    #9998DE

    oklch(70.8% 0.102 284.1)

  6. Step 500

    500

    #817DD4

    oklch(63.1% 0.129 284.2)

  7. Step 600

    600

    #6C64C2

    oklch(55.6% 0.142 284.7)

  8. Step 700

    700

    #5A53A7

    oklch(49.1% 0.13 284.3)

  9. Step 800

    800 (this color)

    #504B8F

    oklch(45.1% 0.109 284.5)

  10. Step 900

    900

    #3D3A6C

    oklch(37.7% 0.084 284.3)

  11. Step 950

    950

    #24223F

    oklch(27% 0.053 285.4)

Export this scale for Tailwind in the Tailwind colors tool

#504B8F with color blindness

Simulated with the Machado et al. (2009) model. ΔE is how far the color moves: below about 0.02 you would not notice a change.

VisionSeen asShift (ΔE)
Protanopia (no red cones)#3055910.047
Deuteranopia (no green cones)#2E518D0.046
Tritanopia (no blue cones)#3D59660.093
Achromatopsia (no color)#5353530.109

Harmonies

Hue rotations in OKLCH that keep this color's lightness and chroma.

Complementary

The opposite hue (180°).

  • #504B8F

    #504B8F

    oklch(45.1% 0.109 284.5)

  • #5E5800

    #5E5800

    oklch(45.2% 0.096 105)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #504B8F

    #504B8F

    oklch(45.1% 0.109 284.5)

  • #265690

    #265690

    oklch(45% 0.109 254.8)

  • #6C417F

    #6C417F

    oklch(45.2% 0.109 314.7)

Open the analogous palette in the generator

Split complementary

The two hues beside the complement (150° and 210°).

  • #504B8F

    #504B8F

    oklch(45.1% 0.109 284.5)

  • #744C00

    #744C00

    oklch(45% 0.095 74.4)

  • #3A621D

    #3A621D

    oklch(45.1% 0.108 134.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #504B8F

    #504B8F

    oklch(45.1% 0.109 284.5)

  • #853E1B

    #853E1B

    oklch(45% 0.108 44.5)

  • #006648

    #006648

    oklch(45.2% 0.095 164.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #504B8F

    #504B8F

    oklch(45.1% 0.109 284.5)

  • #873842

    #873842

    oklch(45.1% 0.108 14.8)

  • #5E5800

    #5E5800

    oklch(45.2% 0.096 105)

  • #006363

    #006363

    oklch(45.2% 0.077 194.8)

Open the square palette in the generator

Palettes with this color

Curated palettes that contain a color within ΔE 0.04 (OKLab) of #504B8F, closest first.

Similar named colors

The eight closest entries in our named color list, with their ΔE distance.

Use #504B8F in your product

Turn it into light and dark UI roles checked for contrast, then export to Tailwind v4, shadcn/ui, CSS or design tokens.