#5F1E8A#5F1E8A

#5F1E8A is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.5% C 0.169 H 307.6°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#5F1E8A
RGBrgb(95, 30, 138)
HSLhsl(276, 64%, 33%)
HSVhsv(276, 78%, 54%)
CMYKcmyk(31.2%, 78.3%, 0%, 45.9%)
CIE-LABlab(27.29, 47.63, -47.06)
CIE-LCHlch(27.29, 66.96, 315.35°)
OKLaboklab(39.46% 0.1029 -0.1337)
OKLCHoklch(39.46% 0.169 307.6)
XYZxyz(9.7701, 5.1966, 24.5282)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1E8A #498A1E
analogous
#291E8A #5F1E8A #8A1E7F
triadic
#5F1E8A #8A5F1E #1E8A5F
tetradic
#5F1E8A #8A291E #498A1E #1E7F8A
square
#5F1E8A #8A291E #498A1E #1E7F8A
split-complementary
#5F1E8A #7F8A1E #1E8A29
monochromatic
#1A0825 #3C1358 #5F1E8A #8229BC #A04BD8

Accessibility & contrast

On white

10.30
#5F1E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#5F1E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1E8A
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1E8A#FFFFFF#000000##FFFFFF
##5F1E8A1.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8D
Deuteranopia (green-blind)
#004188
Tritanopia (blue-blind)
#583953
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5f1e8a;
/* rgb */ color: rgb(95, 30, 138);
/* oklch */ color: oklch(39.5% 0.169 307.6);
Tailwind
colors: {
  custom: {
    50: '#9162ad',
    500: '#5f1e8a',
    950: '#000000',
  },
}
SCSS
$custom: #5f1e8a;
$custom-light: #9162ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1e8a",
  "rgb": {
    "r": 95,
    "g": 30,
    "b": 138
  },
  "hsl": {
    "h": 276.111,
    "s": 64.286,
    "l": 32.941
  },
  "oklch": {
    "l": 0.39464,
    "c": 0.16876,
    "h": 307.6
  },
  "luminance": 0.05196
}

Semantic roles & 50–950 ramp

primary
#5F1E8A
secondary
#76BA4A
accent
#E74183
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5F1E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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