#5F209D#5F209D

#5F209D is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.3% C 0.186 H 301.2°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#5F209D
RGBrgb(95, 32, 157)
HSLhsl(270, 66%, 37%)
HSVhsv(270, 80%, 62%)
CMYKcmyk(39.5%, 79.6%, 0%, 38.4%)
CIE-LABlab(29.16, 51.35, -55.71)
CIE-LCHlch(29.16, 75.77, 312.67°)
OKLaboklab(41.27% 0.0963 -0.1592)
OKLCHoklch(41.27% 0.186 301.2)
XYZxyz(11.3201, 5.9002, 32.4342)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F209D #5E9D20
analogous
#20209D #5F209D #9D209D
triadic
#5F209D #9D5F20 #209D5F
tetradic
#5F209D #9D2020 #5E9D20 #209D9D
square
#5F209D #9D2020 #5E9D20 #209D9D
split-complementary
#5F209D #9D9D20 #209D20
monochromatic
#210B37 #40166A #5F209D #7E2AD0 #9C5ADD

Accessibility & contrast

On white

9.63
#5F209D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#5F209D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F209D
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F209D#FFFFFF#000000##FFFFFF
##5F209D1.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A0
Deuteranopia (green-blind)
#00449B
Tritanopia (blue-blind)
#51425E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5f209d;
/* rgb */ color: rgb(95, 32, 157);
/* oklch */ color: oklch(41.3% 0.186 301.2);
Tailwind
colors: {
  custom: {
    50: '#9363bb',
    500: '#5f209d',
    950: '#000000',
  },
}
SCSS
$custom: #5f209d;
$custom-light: #9363bb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f209d",
  "rgb": {
    "r": 95,
    "g": 32,
    "b": 157
  },
  "hsl": {
    "h": 270.24,
    "s": 66.138,
    "l": 37.059
  },
  "oklch": {
    "l": 0.4127,
    "c": 0.18603,
    "h": 301.2
  },
  "luminance": 0.059
}

Semantic roles & 50–950 ramp

primary
#5F209D
secondary
#8CC157
accent
#E93F93
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F209D

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

Preview Lab → · Contrast checker → · Palette generator →

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