#505271

Closest named color: Dusty Grape (#545775). oklch(45% 0.051 281.3), rgb(80, 82, 113).

Aa

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

About this color

#505271 is a dark, muted purple. In OKLCH its lightness is 45%, its chroma 0.051 and its hue 281°. Its hue sits on the cool side of the wheel. The nearest named color is Dusty Grape (#545775), ΔE 0.017 away. White text reads best on it, at 7.53:1.

Hue familyPurples
Lightnessdark (45%)
Chromamuted (0.051)
Temperaturecool
Nearest nameDusty Grape (#545775)
Black text2.78:1
White text7.53:1

Values

HEX#505271
RGBrgb(80, 82, 113)
HSLhsl(236, 17%, 38%)
OKLCHoklch(45% 0.051 281.3)

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 #505271 7.53:1 AAA Lc -91.0 Preferred for body text
Black text on #505271 2.78:1 Fails Lc 17.8 Dividers and decoration only
#505271 text on white 7.53:1 AAA Lc 86.2 Fine for body text
#505271 text on black 2.78:1 Fails Lc -15.9 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

    #F5F5F8

    oklch(97.1% 0.004 286.3)

  2. Step 100

    100

    #E9E9F0

    oklch(93.6% 0.009 286.2)

  3. Step 200

    200

    #D7D8E4

    oklch(88.5% 0.016 282.2)

  4. Step 300

    300

    #BDBFD4

    oklch(81% 0.029 281.4)

  5. Step 400

    400

    #9B9EBE

    oklch(70.8% 0.047 280.9)

  6. Step 500

    500

    #8386AE

    oklch(63.2% 0.06 281.2)

  7. Step 600

    600

    #6C6F99

    oklch(55.6% 0.065 280.9)

  8. Step 700

    700

    #5A5D83

    oklch(49.1% 0.061 280.4)

  9. Step 800

    800 (this color)

    #505271

    oklch(45% 0.051 281.3)

  10. Step 900

    900

    #3E3F56

    oklch(37.7% 0.039 282.4)

  11. Step 950

    950

    #242533

    oklch(27% 0.026 281.3)

Export this scale for Tailwind in the Tailwind colors tool

#505271 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)#4955720.013
Deuteranopia (no green cones)#4853700.012
Tritanopia (no blue cones)#48585D0.045
Achromatopsia (no color)#5454540.051

Harmonies

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

Complementary

The opposite hue (180°).

  • #505271

    #505271

    oklch(45% 0.051 281.3)

  • #5B5635

    #5B5635

    oklch(44.9% 0.05 100.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #505271

    #505271

    oklch(45% 0.051 281.3)

  • #405771

    #405771

    oklch(44.9% 0.051 252)

  • #5E4D6A

    #5E4D6A

    oklch(44.9% 0.051 310.9)

Open the analogous palette in the generator

Split complementary

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

  • #505271

    #505271

    oklch(45% 0.051 281.3)

  • #675135

    #675135

    oklch(45% 0.051 72.6)

  • #4B5B3D

    #4B5B3D

    oklch(44.9% 0.051 131)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #505271

    #505271

    oklch(45% 0.051 281.3)

  • #6E4C3F

    #6E4C3F

    oklch(45% 0.051 41.8)

  • #3B5E4C

    #3B5E4C

    oklch(44.9% 0.05 161)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #505271

    #505271

    oklch(45% 0.051 281.3)

  • #6E494E

    #6E494E

    oklch(44.8% 0.051 10.4)

  • #5B5635

    #5B5635

    oklch(44.9% 0.05 100.7)

  • #305E5C

    #305E5C

    oklch(44.9% 0.051 191.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #505271 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.