#5F1E92#5F1E92

#5F1E92 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.1% C 0.177 H 304.8°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#5F1E92
RGBrgb(95, 30, 146)
HSLhsl(274, 66%, 35%)
HSVhsv(274, 79%, 57%)
CMYKcmyk(34.9%, 79.5%, 0%, 42.7%)
CIE-LABlab(27.94, 49.51, -50.95)
CIE-LCHlch(27.94, 71.04, 314.18°)
OKLaboklab(40.13% 0.101 -0.1452)
OKLCHoklch(40.13% 0.177 304.8)
XYZxyz(10.3707, 5.4368, 27.6916)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1E92 #51921E
analogous
#251E92 #5F1E92 #921E8B
triadic
#5F1E92 #925F1E #1E925F
tetradic
#5F1E92 #92251E #51921E #1E8B92
square
#5F1E92 #92251E #51921E #1E8B92
split-complementary
#5F1E92 #8B921E #1E9225
monochromatic
#1D092C #3E145F #5F1E92 #8028C5 #9E4FDB

Accessibility & contrast

On white

10.06
#5F1E92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#5F1E92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1E92
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1E92#FFFFFF#000000##FFFFFF
##5F1E921.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004095
Deuteranopia (green-blind)
#004290
Tritanopia (blue-blind)
#553C58
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5f1e92;
/* rgb */ color: rgb(95, 30, 146);
/* oklch */ color: oklch(40.1% 0.177 304.8);
Tailwind
colors: {
  custom: {
    50: '#9262b3',
    500: '#5f1e92',
    950: '#000000',
  },
}
SCSS
$custom: #5f1e92;
$custom-light: #9262b3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1e92",
  "rgb": {
    "r": 95,
    "g": 30,
    "b": 146
  },
  "hsl": {
    "h": 273.621,
    "s": 65.909,
    "l": 34.51
  },
  "oklch": {
    "l": 0.4013,
    "c": 0.17683,
    "h": 304.8
  },
  "luminance": 0.05437
}

Semantic roles & 50–950 ramp

primary
#5F1E92
secondary
#7FBE4E
accent
#E93F8A
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5F1E92

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

Preview Lab → · Contrast checker → · Palette generator →

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