#5F209F#5F209F

#5F209F is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.4% C 0.188 H 300.6°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#5F209F
RGBrgb(95, 32, 159)
HSLhsl(270, 66%, 37%)
HSVhsv(270, 80%, 62%)
CMYKcmyk(40.3%, 79.9%, 0%, 37.6%)
CIE-LABlab(29.33, 51.84, -56.64)
CIE-LCHlch(29.33, 76.78, 312.46°)
OKLaboklab(41.45% 0.0957 -0.1619)
OKLCHoklch(41.45% 0.188 300.6)
XYZxyz(11.4923, 5.9690, 33.3408)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F209F #609F20
analogous
#20209F #5F209F #9F209F
triadic
#5F209F #9F5F20 #209F5F
tetradic
#5F209F #9F2020 #609F20 #209F9F
square
#5F209F #9F2020 #609F20 #209F9F
split-complementary
#5F209F #9F9F20 #209F20
monochromatic
#220B39 #41166C #5F209F #7D2AD2 #9C5BDE

Accessibility & contrast

On white

9.57
#5F209F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5F209F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F209F
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F209F#FFFFFF#000000##FFFFFF
##5F209F1.009.572.199.57
#FFFFFF9.571.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A2
Deuteranopia (green-blind)
#00449D
Tritanopia (blue-blind)
#504360
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5f209f;
/* rgb */ color: rgb(95, 32, 159);
/* oklch */ color: oklch(41.4% 0.188 300.6);
Tailwind
colors: {
  custom: {
    50: '#9364bc',
    500: '#5f209f',
    950: '#000000',
  },
}
SCSS
$custom: #5f209f;
$custom-light: #9364bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f209f",
  "rgb": {
    "r": 95,
    "g": 32,
    "b": 159
  },
  "hsl": {
    "h": 269.764,
    "s": 66.492,
    "l": 37.451
  },
  "oklch": {
    "l": 0.41446,
    "c": 0.18808,
    "h": 300.6
  },
  "luminance": 0.05969
}

Semantic roles & 50–950 ramp

primary
#5F209F
secondary
#8EC259
accent
#E93E95
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F209F

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

Preview Lab → · Contrast checker → · Palette generator →

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