#5F209E#5F209E

#5F209E is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.4% C 0.187 H 300.9°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#5F209E
RGBrgb(95, 32, 158)
HSLhsl(270, 66%, 37%)
HSVhsv(270, 80%, 62%)
CMYKcmyk(39.9%, 79.7%, 0%, 38%)
CIE-LABlab(29.25, 51.59, -56.18)
CIE-LCHlch(29.25, 76.27, 312.57°)
OKLaboklab(41.36% 0.096 -0.1605)
OKLCHoklch(41.36% 0.187 300.9)
XYZxyz(11.4059, 5.9345, 32.8857)
Luminance0.0593 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F209E #5F9E20
analogous
#20209E #5F209E #9E209E
triadic
#5F209E #9E5F20 #209E5F
tetradic
#5F209E #9E2020 #5F9E20 #209E9E
square
#5F209E #9E2020 #5F9E20 #209E9E
split-complementary
#5F209E #9E9E20 #209E20
monochromatic
#220B38 #40166B #5F209E #7E2AD1 #9C5BDE

Accessibility & contrast

On white

9.60
#5F209E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F209E
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F209E#FFFFFF#000000##FFFFFF
##5F209E1.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A1
Deuteranopia (green-blind)
#00449C
Tritanopia (blue-blind)
#51425F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5f209e;
/* rgb */ color: rgb(95, 32, 158);
/* oklch */ color: oklch(41.4% 0.187 300.9);
Tailwind
colors: {
  custom: {
    50: '#9364bc',
    500: '#5f209e',
    950: '#000000',
  },
}
SCSS
$custom: #5f209e;
$custom-light: #9364bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f209e",
  "rgb": {
    "r": 95,
    "g": 32,
    "b": 158
  },
  "hsl": {
    "h": 270,
    "s": 66.316,
    "l": 37.255
  },
  "oklch": {
    "l": 0.41358,
    "c": 0.18706,
    "h": 300.9
  },
  "luminance": 0.05935
}

Semantic roles & 50–950 ramp

primary
#5F209E
secondary
#8DC258
accent
#E93F94
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F209E

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

Preview Lab → · Contrast checker → · Palette generator →

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