#5F207C#5F207C

#5F207C is a dark, vivid purple. Relative luminance 0.049; OKLCH L 38.6% C 0.152 H 312.8°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#5F207C
RGBrgb(95, 32, 124)
HSLhsl(281, 59%, 31%)
HSVhsv(281, 74%, 49%)
CMYKcmyk(23.4%, 74.2%, 0%, 51.4%)
CIE-LABlab(26.51, 43.59, -39.53)
CIE-LCHlch(26.51, 58.85, 317.80°)
OKLaboklab(38.58% 0.1035 -0.1116)
OKLCHoklch(38.58% 0.152 312.8)
XYZxyz(8.8733, 4.9214, 19.5474)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F207C #3D7C20
analogous
#31207C #5F207C #7C206B
triadic
#5F207C #7C5F20 #207C5F
tetradic
#5F207C #7C3120 #3D7C20 #206B7C
square
#5F207C #7C3120 #3D7C20 #206B7C
split-complementary
#5F207C #6B7C20 #207C31
monochromatic
#14071B #3A134B #5F207C #842DAD #A447CF

Accessibility & contrast

On white

10.58
#5F207C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F207C
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F207C#FFFFFF#000000##FFFFFF
##5F207C1.0010.581.9810.58
#FFFFFF10.581.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7F
Deuteranopia (green-blind)
#17407A
Tritanopia (blue-blind)
#5C344C
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5f207c;
/* rgb */ color: rgb(95, 32, 124);
/* oklch */ color: oklch(38.6% 0.152 312.8);
Tailwind
colors: {
  custom: {
    50: '#9062a2',
    500: '#5f207c',
    950: '#000000',
  },
}
SCSS
$custom: #5f207c;
$custom-light: #9062a2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f207c",
  "rgb": {
    "r": 95,
    "g": 32,
    "b": 124
  },
  "hsl": {
    "h": 281.087,
    "s": 58.974,
    "l": 30.588
  },
  "oklch": {
    "l": 0.38576,
    "c": 0.15219,
    "h": 312.8
  },
  "luminance": 0.04921
}

Semantic roles & 50–950 ramp

primary
#5F207C
secondary
#69AF49
accent
#E24677
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D050F
muted
#7E7A7F

Preview Lab

Preview with #5F207C

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

Preview Lab → · Contrast checker → · Palette generator →

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