#5F2175#5F2175

#5F2175 is a dark, vivid purple. Relative luminance 0.048; OKLCH L 38.2% C 0.144 H 315.8°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#5F2175
RGBrgb(95, 33, 117)
HSLhsl(284, 56%, 29%)
HSVhsv(284, 72%, 46%)
CMYKcmyk(18.8%, 71.8%, 0%, 54.1%)
CIE-LABlab(26.17, 41.59, -35.63)
CIE-LCHlch(26.17, 54.76, 319.41°)
OKLaboklab(38.18% 0.1031 -0.1002)
OKLCHoklch(38.18% 0.144 315.8)
XYZxyz(8.4736, 4.8053, 17.3073)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2175 #377521
analogous
#352175 #5F2175 #752161
triadic
#5F2175 #755F21 #21755F
tetradic
#5F2175 #753521 #377521 #216175
square
#5F2175 #753521 #377521 #216175
split-complementary
#5F2175 #617521 #217535
monochromatic
#130718 #381445 #5F2175 #862EA5 #A846CB

Accessibility & contrast

On white

10.71
#5F2175 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#5F2175 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2175
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2175#FFFFFF#000000##FFFFFF
##5F21751.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A77
Deuteranopia (green-blind)
#204073
Tritanopia (blue-blind)
#5E3248
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5f2175;
/* rgb */ color: rgb(95, 33, 117);
/* oklch */ color: oklch(38.2% 0.144 315.8);
Tailwind
colors: {
  custom: {
    50: '#8f629d',
    500: '#5f2175',
    950: '#000000',
  },
}
SCSS
$custom: #5f2175;
$custom-light: #8f629d;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2175",
  "rgb": {
    "r": 95,
    "g": 33,
    "b": 117
  },
  "hsl": {
    "h": 284.286,
    "s": 56,
    "l": 29.412
  },
  "oklch": {
    "l": 0.38177,
    "c": 0.14373,
    "h": 315.8
  },
  "luminance": 0.04805
}

Semantic roles & 50–950 ramp

primary
#5F2175
secondary
#62A84A
accent
#DF4970
background
#F9F6F9
surface
#F1EBF2
border
#CBC6CC
text
#0D050E
muted
#7E7A7E

Preview Lab

Preview with #5F2175

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#5F2175 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva