#5F2E99#5F2E99

#5F2E99 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.5% C 0.166 H 300.4°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#5F2E99
RGBrgb(95, 46, 153)
HSLhsl(267, 54%, 39%)
HSVhsv(267, 70%, 60%)
CMYKcmyk(37.9%, 69.9%, 0%, 40%)
CIE-LABlab(31.08, 43.96, -50.14)
CIE-LCHlch(31.08, 66.68, 311.24°)
OKLaboklab(42.53% 0.0838 -0.1429)
OKLCHoklch(42.53% 0.166 300.4)
XYZxyz(11.4447, 6.6867, 30.8185)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2E99 #68992E
analogous
#2E3299 #5F2E99 #952E99
triadic
#5F2E99 #995F2E #2E995F
tetradic
#5F2E99 #992E32 #68992E #2E9995
square
#5F2E99 #992E32 #68992E #2E9995
split-complementary
#5F2E99 #99952E #32992E
monochromatic
#25123B #42206A #5F2E99 #7C3FC5 #9C6ED3

Accessibility & contrast

On white

8.98
#5F2E99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#5F2E99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2E99
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2E99#FFFFFF#000000##FFFFFF
##5F2E991.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499C
Deuteranopia (green-blind)
#004897
Tritanopia (blue-blind)
#524760
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5f2e99;
/* rgb */ color: rgb(95, 46, 153);
/* oklch */ color: oklch(42.5% 0.166 300.4);
Tailwind
colors: {
  custom: {
    50: '#916bb8',
    500: '#5f2e99',
    950: '#000000',
  },
}
SCSS
$custom: #5f2e99;
$custom-light: #916bb8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2e99",
  "rgb": {
    "r": 95,
    "g": 46,
    "b": 153
  },
  "hsl": {
    "h": 267.477,
    "s": 53.769,
    "l": 39.02
  },
  "oklch": {
    "l": 0.42526,
    "c": 0.16566,
    "h": 300.4
  },
  "luminance": 0.06687
}

Semantic roles & 50–950 ramp

primary
#5F2E99
secondary
#95BB68
accent
#DD4B9A
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5F2E99

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

Preview Lab → · Contrast checker → · Palette generator →

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