#5F207D#5F207D

#5F207D is a dark, vivid purple. Relative luminance 0.049; OKLCH L 38.7% C 0.153 H 312.4°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#5F207D
RGBrgb(95, 32, 125)
HSLhsl(281, 59%, 31%)
HSVhsv(281, 74%, 49%)
CMYKcmyk(24%, 74.4%, 0%, 51%)
CIE-LABlab(26.58, 43.82, -40.05)
CIE-LCHlch(26.58, 59.36, 317.57°)
OKLaboklab(38.65% 0.1033 -0.1131)
OKLCHoklch(38.65% 0.153 312.4)
XYZxyz(8.9368, 4.9468, 19.8821)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F207D #3E7D20
analogous
#30207D #5F207D #7D206C
triadic
#5F207D #7D5F20 #207D5F
tetradic
#5F207D #7D3020 #3E7D20 #206C7D
square
#5F207D #7D3020 #3E7D20 #206C7D
split-complementary
#5F207D #6C7D20 #207D30
monochromatic
#15071C #3A144C #5F207D #842CAE #A447D0

Accessibility & contrast

On white

10.56
#5F207D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F207D
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F207D#FFFFFF#000000##FFFFFF
##5F207D1.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C80
Deuteranopia (green-blind)
#15407B
Tritanopia (blue-blind)
#5C344C
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5f207d;
/* rgb */ color: rgb(95, 32, 125);
/* oklch */ color: oklch(38.7% 0.153 312.4);
Tailwind
colors: {
  custom: {
    50: '#9062a3',
    500: '#5f207d',
    950: '#000000',
  },
}
SCSS
$custom: #5f207d;
$custom-light: #9062a3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f207d",
  "rgb": {
    "r": 95,
    "g": 32,
    "b": 125
  },
  "hsl": {
    "h": 280.645,
    "s": 59.236,
    "l": 30.784
  },
  "oklch": {
    "l": 0.38651,
    "c": 0.15321,
    "h": 312.4
  },
  "luminance": 0.04947
}

Semantic roles & 50–950 ramp

primary
#5F207D
secondary
#6AB049
accent
#E24578
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D050F
muted
#7E7A7F

Preview Lab

Preview with #5F207D

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

Preview Lab → · Contrast checker → · Palette generator →

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