#5F1C95#5F1C95

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

Color values

HEX#5F1C95
RGBrgb(95, 28, 149)
HSLhsl(273, 68%, 35%)
HSVhsv(273, 81%, 58%)
CMYKcmyk(36.2%, 81.2%, 0%, 41.6%)
CIE-LABlab(27.94, 50.98, -52.81)
CIE-LCHlch(27.94, 73.40, 313.99°)
OKLaboklab(40.2% 0.1018 -0.1506)
OKLCHoklch(40.2% 0.182 304.1)
XYZxyz(10.5581, 5.4334, 28.9205)
Luminance0.0543 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1C95 #52951C
analogous
#221C95 #5F1C95 #951C8F
triadic
#5F1C95 #955F1C #1C955F
tetradic
#5F1C95 #95221C #52951C #1C8F95
square
#5F1C95 #95221C #52951C #1C8F95
split-complementary
#5F1C95 #8F951C #1C9522
monochromatic
#1D092E #3E1261 #5F1C95 #8026C9 #9D4EDE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F1C95#FFFFFF#000000##FFFFFF
##5F1C951.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)
#004098
Deuteranopia (green-blind)
#004293
Tritanopia (blue-blind)
#543D59
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5f1c95;
/* rgb */ color: rgb(95, 28, 149);
/* oklch */ color: oklch(40.2% 0.182 304.1);
Tailwind
colors: {
  custom: {
    50: '#9261b5',
    500: '#5f1c95',
    950: '#000000',
  },
}
SCSS
$custom: #5f1c95;
$custom-light: #9261b5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1c95",
  "rgb": {
    "r": 95,
    "g": 28,
    "b": 149
  },
  "hsl": {
    "h": 273.223,
    "s": 68.362,
    "l": 34.706
  },
  "oklch": {
    "l": 0.40203,
    "c": 0.18181,
    "h": 304.1
  },
  "luminance": 0.05433
}

Semantic roles & 50–950 ramp

primary
#5F1C95
secondary
#80C04D
accent
#EB3D8B
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0511
muted
#7E7A80

Preview Lab

Preview with #5F1C95

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

Preview Lab → · Contrast checker → · Palette generator →

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