#5F1EA9#5F1EA9

#5F1EA9 is a dark, highly saturated violet. Relative luminance 0.062; OKLCH L 42.2% C 0.200 H 298.1°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#5F1EA9
RGBrgb(95, 30, 169)
HSLhsl(268, 70%, 39%)
HSVhsv(268, 82%, 66%)
CMYKcmyk(43.8%, 82.2%, 0%, 33.7%)
CIE-LABlab(29.98, 55.03, -61.64)
CIE-LCHlch(29.98, 82.63, 311.76°)
OKLaboklab(42.17% 0.0941 -0.1766)
OKLCHoklch(42.17% 0.2 298.1)
XYZxyz(12.3432, 6.2258, 38.0798)
Luminance0.0623 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1EA9 #68A91E
analogous
#1E22A9 #5F1EA9 #A51EA9
triadic
#5F1EA9 #A95F1E #1EA95F
tetradic
#5F1EA9 #A91E22 #68A91E #1EA9A5
square
#5F1EA9 #A91E22 #68A91E #1EA9A5
split-complementary
#5F1EA9 #A9A51E #22A91E
monochromatic
#250C41 #421575 #5F1EA9 #7C2BD9 #9C5FE3

Accessibility & contrast

On white

9.35
#5F1EA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#5F1EA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1EA9
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1EA9#FFFFFF#000000##FFFFFF
##5F1EA91.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AD
Deuteranopia (green-blind)
#0045A6
Tritanopia (blue-blind)
#4C4665
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5f1ea9;
/* rgb */ color: rgb(95, 30, 169);
/* oklch */ color: oklch(42.2% 0.200 298.1);
Tailwind
colors: {
  custom: {
    50: '#9463c4',
    500: '#5f1ea9',
    950: '#000000',
  },
}
SCSS
$custom: #5f1ea9;
$custom-light: #9463c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1ea9",
  "rgb": {
    "r": 95,
    "g": 30,
    "b": 169
  },
  "hsl": {
    "h": 268.058,
    "s": 69.849,
    "l": 39.02
  },
  "oklch": {
    "l": 0.42168,
    "c": 0.20006,
    "h": 298.1
  },
  "luminance": 0.06226
}

Semantic roles & 50–950 ramp

primary
#5F1EA9
secondary
#95C75C
accent
#ED3B9A
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5F1EA9

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

Preview Lab → · Contrast checker → · Palette generator →

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