#5F1E94#5F1E94

#5F1E94 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.3% C 0.179 H 304.2°. Best body text is #FFFFFF at 10.00:1 contrast (WCAG AA passes).

Color values

HEX#5F1E94
RGBrgb(95, 30, 148)
HSLhsl(273, 66%, 35%)
HSVhsv(273, 80%, 58%)
CMYKcmyk(35.8%, 79.7%, 0%, 42%)
CIE-LABlab(28.11, 49.98, -51.91)
CIE-LCHlch(28.11, 72.06, 313.92°)
OKLaboklab(40.3% 0.1005 -0.148)
OKLCHoklch(40.3% 0.179 304.2)
XYZxyz(10.5276, 5.4996, 28.5181)
Luminance0.0550 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1E94 #53941E
analogous
#241E94 #5F1E94 #941E8E
triadic
#5F1E94 #945F1E #1E945F
tetradic
#5F1E94 #94241E #53941E #1E8E94
square
#5F1E94 #94241E #53941E #1E8E94
split-complementary
#5F1E94 #8E941E #1E9424
monochromatic
#1E092E #3E1461 #5F1E94 #8028C7 #9D51DC

Accessibility & contrast

On white

10.00
#5F1E94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#5F1E94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1E94
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1E94#FFFFFF#000000##FFFFFF
##5F1E941.0010.002.1010.00
#FFFFFF10.001.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004197
Deuteranopia (green-blind)
#004292
Tritanopia (blue-blind)
#543D59
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5f1e94;
/* rgb */ color: rgb(95, 30, 148);
/* oklch */ color: oklch(40.3% 0.179 304.2);
Tailwind
colors: {
  custom: {
    50: '#9262b4',
    500: '#5f1e94',
    950: '#000000',
  },
}
SCSS
$custom: #5f1e94;
$custom-light: #9262b4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1e94",
  "rgb": {
    "r": 95,
    "g": 30,
    "b": 148
  },
  "hsl": {
    "h": 273.051,
    "s": 66.292,
    "l": 34.902
  },
  "oklch": {
    "l": 0.403,
    "c": 0.17886,
    "h": 304.2
  },
  "luminance": 0.055
}

Semantic roles & 50–950 ramp

primary
#5F1E94
secondary
#81BF4F
accent
#E93F8B
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0511
muted
#7E7A80

Preview Lab

Preview with #5F1E94

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

Preview Lab → · Contrast checker → · Palette generator →

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