#5F2099#5F2099

#5F2099 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.9% C 0.182 H 302.4°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#5F2099
RGBrgb(95, 32, 153)
HSLhsl(271, 65%, 36%)
HSVhsv(271, 79%, 60%)
CMYKcmyk(37.9%, 79.1%, 0%, 40%)
CIE-LABlab(28.81, 50.38, -53.83)
CIE-LCHlch(28.81, 73.73, 313.10°)
OKLaboklab(40.92% 0.0974 -0.1536)
OKLCHoklch(40.92% 0.182 302.4)
XYZxyz(10.9842, 5.7658, 30.6650)
Luminance0.0577 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2099 #5A9920
analogous
#232099 #5F2099 #992097
triadic
#5F2099 #995F20 #20995F
tetradic
#5F2099 #992320 #5A9920 #209799
square
#5F2099 #992320 #5A9920 #209799
split-complementary
#5F2099 #979920 #209923
monochromatic
#200B34 #401566 #5F2099 #7E2BCC #9C57DC

Accessibility & contrast

On white

9.75
#5F2099 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5F2099 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2099
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2099#FFFFFF#000000##FFFFFF
##5F20991.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439C
Deuteranopia (green-blind)
#004397
Tritanopia (blue-blind)
#53405C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5f2099;
/* rgb */ color: rgb(95, 32, 153);
/* oklch */ color: oklch(40.9% 0.182 302.4);
Tailwind
colors: {
  custom: {
    50: '#9263b8',
    500: '#5f2099',
    950: '#000000',
  },
}
SCSS
$custom: #5f2099;
$custom-light: #9263b8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2099",
  "rgb": {
    "r": 95,
    "g": 32,
    "b": 153
  },
  "hsl": {
    "h": 271.24,
    "s": 65.405,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40922,
    "c": 0.18192,
    "h": 302.4
  },
  "luminance": 0.05766
}

Semantic roles & 50–950 ramp

primary
#5F2099
secondary
#88C055
accent
#E83F90
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #5F2099

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

Preview Lab → · Contrast checker → · Palette generator →

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