#5F2E98#5F2E98

#5F2E98 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.4% C 0.165 H 300.7°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#5F2E98
RGBrgb(95, 46, 152)
HSLhsl(268, 54%, 39%)
HSVhsv(268, 70%, 60%)
CMYKcmyk(37.5%, 69.7%, 0%, 40.4%)
CIE-LABlab(31.01, 43.70, -49.65)
CIE-LCHlch(31.01, 66.14, 311.35°)
OKLaboklab(42.45% 0.084 -0.1414)
OKLCHoklch(42.45% 0.165 300.7)
XYZxyz(11.3624, 6.6538, 30.3854)
Luminance0.0665 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2E98 #67982E
analogous
#2E3298 #5F2E98 #942E98
triadic
#5F2E98 #985F2E #2E985F
tetradic
#5F2E98 #982E32 #67982E #2E9894
square
#5F2E98 #982E32 #67982E #2E9894
split-complementary
#5F2E98 #98942E #32982E
monochromatic
#24123A #422069 #5F2E98 #7D3EC5 #9C6DD3

Accessibility & contrast

On white

9.01
#5F2E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#5F2E98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2E98
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2E98#FFFFFF#000000##FFFFFF
##5F2E981.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499B
Deuteranopia (green-blind)
#004896
Tritanopia (blue-blind)
#53475F
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5f2e98;
/* rgb */ color: rgb(95, 46, 152);
/* oklch */ color: oklch(42.4% 0.165 300.7);
Tailwind
colors: {
  custom: {
    50: '#916bb7',
    500: '#5f2e98',
    950: '#000000',
  },
}
SCSS
$custom: #5f2e98;
$custom-light: #916bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2e98",
  "rgb": {
    "r": 95,
    "g": 46,
    "b": 152
  },
  "hsl": {
    "h": 267.736,
    "s": 53.535,
    "l": 38.824
  },
  "oklch": {
    "l": 0.42447,
    "c": 0.1645,
    "h": 300.7
  },
  "luminance": 0.06654
}

Semantic roles & 50–950 ramp

primary
#5F2E98
secondary
#94BA68
accent
#DD4B99
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5F2E98

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

Preview Lab → · Contrast checker → · Palette generator →

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