#5F206C#5F206C

#5F206C is a dark, vivid purple. Relative luminance 0.045; OKLCH L 37.4% C 0.136 H 320.3°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#5F206C
RGBrgb(95, 32, 108)
HSLhsl(290, 54%, 27%)
HSVhsv(290, 70%, 42%)
CMYKcmyk(12%, 70.4%, 0%, 57.6%)
CIE-LABlab(25.41, 40.11, -31.07)
CIE-LCHlch(25.41, 50.74, 322.23°)
OKLaboklab(37.44% 0.1047 -0.0868)
OKLCHoklch(37.44% 0.136 320.3)
XYZxyz(7.9423, 4.5490, 14.6441)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F206C #2D6C20
analogous
#39206C #5F206C #6C2053
triadic
#5F206C #6C5F20 #206C5F
tetradic
#5F206C #6C3920 #2D6C20 #20536C
square
#5F206C #6C3920 #2D6C20 #20536C
split-complementary
#5F206C #536C20 #206C39
monochromatic
#150718 #35123D #5F206C #892E9B #AF40C6

Accessibility & contrast

On white

11.00
#5F206C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#5F206C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F206C
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F206C#FFFFFF#000000##FFFFFF
##5F206C1.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06386E
Deuteranopia (green-blind)
#273E6A
Tritanopia (blue-blind)
#602D43
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5f206c;
/* rgb */ color: rgb(95, 32, 108);
/* oklch */ color: oklch(37.4% 0.136 320.3);
Tailwind
colors: {
  custom: {
    50: '#8f6196',
    500: '#5f206c',
    950: '#000000',
  },
}
SCSS
$custom: #5f206c;
$custom-light: #8f6196;
$custom-dark: #000000;
JSON
{
  "hex": "#5f206c",
  "rgb": {
    "r": 95,
    "g": 32,
    "b": 108
  },
  "hsl": {
    "h": 289.737,
    "s": 54.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.37437,
    "c": 0.13606,
    "h": 320.3
  },
  "luminance": 0.04549
}

Semantic roles & 50–950 ramp

primary
#5F206C
secondary
#57A048
accent
#DE4A63
background
#F9F5F9
surface
#F1EAF2
border
#CBC6CC
text
#0D050D
muted
#7E797E

Preview Lab

Preview with #5F206C

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

Preview Lab → · Contrast checker → · Palette generator →

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