#5F207E#5F207E

#5F207E is a dark, vivid purple. Relative luminance 0.050; OKLCH L 38.7% C 0.154 H 312.0°. Best body text is #FFFFFF at 10.53:1 contrast (WCAG AA passes).

Color values

HEX#5F207E
RGBrgb(95, 32, 126)
HSLhsl(280, 59%, 31%)
HSVhsv(280, 75%, 49%)
CMYKcmyk(24.6%, 74.6%, 0%, 50.6%)
CIE-LABlab(26.66, 44.04, -40.56)
CIE-LCHlch(26.66, 59.87, 317.36°)
OKLaboklab(38.73% 0.1032 -0.1146)
OKLCHoklch(38.73% 0.154 312)
XYZxyz(9.0010, 4.9725, 20.2203)
Luminance0.0497 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F207E #3F7E20
analogous
#30207E #5F207E #7E206E
triadic
#5F207E #7E5F20 #207E5F
tetradic
#5F207E #7E3020 #3F7E20 #206E7E
square
#5F207E #7E3020 #3F7E20 #206E7E
split-complementary
#5F207E #6E7E20 #207E30
monochromatic
#15071C #3A144D #5F207E #842CAF #A348D0

Accessibility & contrast

On white

10.53
#5F207E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#5F207E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F207E
10.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F207E#FFFFFF#000000##FFFFFF
##5F207E1.0010.531.9910.53
#FFFFFF10.531.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C81
Deuteranopia (green-blind)
#14407C
Tritanopia (blue-blind)
#5B354D
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5f207e;
/* rgb */ color: rgb(95, 32, 126);
/* oklch */ color: oklch(38.7% 0.154 312.0);
Tailwind
colors: {
  custom: {
    50: '#9062a4',
    500: '#5f207e',
    950: '#000000',
  },
}
SCSS
$custom: #5f207e;
$custom-light: #9062a4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f207e",
  "rgb": {
    "r": 95,
    "g": 32,
    "b": 126
  },
  "hsl": {
    "h": 280.213,
    "s": 59.494,
    "l": 30.98
  },
  "oklch": {
    "l": 0.38726,
    "c": 0.15424,
    "h": 312
  },
  "luminance": 0.04972
}

Semantic roles & 50–950 ramp

primary
#5F207E
secondary
#6BB149
accent
#E34579
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D050F
muted
#7E7A7F

Preview Lab

Preview with #5F207E

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

Preview Lab → · Contrast checker → · Palette generator →

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