#5F207B#5F207B

#5F207B is a dark, vivid purple. Relative luminance 0.049; OKLCH L 38.5% C 0.151 H 313.2°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#5F207B
RGBrgb(95, 32, 123)
HSLhsl(282, 59%, 30%)
HSVhsv(282, 74%, 48%)
CMYKcmyk(22.8%, 74%, 0%, 51.8%)
CIE-LABlab(26.44, 43.37, -39.02)
CIE-LCHlch(26.44, 58.33, 318.02°)
OKLaboklab(38.5% 0.1036 -0.1101)
OKLCHoklch(38.5% 0.151 313.2)
XYZxyz(8.8104, 4.8963, 19.2160)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F207B #3C7B20
analogous
#31207B #5F207B #7B206A
triadic
#5F207B #7B5F20 #207B5F
tetradic
#5F207B #7B3120 #3C7B20 #206A7B
square
#5F207B #7B3120 #3C7B20 #206A7B
split-complementary
#5F207B #6A7B20 #207B31
monochromatic
#14071A #39134A #5F207B #852DAC #A546CF

Accessibility & contrast

On white

10.61
#5F207B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#5F207B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F207B
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F207B#FFFFFF#000000##FFFFFF
##5F207B1.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7E
Deuteranopia (green-blind)
#184079
Tritanopia (blue-blind)
#5C334B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5f207b;
/* rgb */ color: rgb(95, 32, 123);
/* oklch */ color: oklch(38.5% 0.151 313.2);
Tailwind
colors: {
  custom: {
    50: '#9062a2',
    500: '#5f207b',
    950: '#000000',
  },
}
SCSS
$custom: #5f207b;
$custom-light: #9062a2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f207b",
  "rgb": {
    "r": 95,
    "g": 32,
    "b": 123
  },
  "hsl": {
    "h": 281.538,
    "s": 58.71,
    "l": 30.392
  },
  "oklch": {
    "l": 0.38501,
    "c": 0.15117,
    "h": 313.2
  },
  "luminance": 0.04896
}

Semantic roles & 50–950 ramp

primary
#5F207B
secondary
#68AE49
accent
#E24676
background
#F9F6FA
surface
#F1EBF3
border
#CBC6CD
text
#0D050F
muted
#7E7A7F

Preview Lab

Preview with #5F207B

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

Preview Lab → · Contrast checker → · Palette generator →

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