#5F1C94#5F1C94

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

Color values

HEX#5F1C94
RGBrgb(95, 28, 148)
HSLhsl(274, 68%, 35%)
HSVhsv(274, 81%, 58%)
CMYKcmyk(35.8%, 81.1%, 0%, 42%)
CIE-LABlab(27.85, 50.74, -52.34)
CIE-LCHlch(27.85, 72.90, 314.11°)
OKLaboklab(40.12% 0.1021 -0.1492)
OKLCHoklch(40.12% 0.181 304.4)
XYZxyz(10.4786, 5.4016, 28.5018)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1C94 #51941C
analogous
#231C94 #5F1C94 #941C8D
triadic
#5F1C94 #945F1C #1C945F
tetradic
#5F1C94 #94231C #51941C #1C8D94
square
#5F1C94 #94231C #51941C #1C8D94
split-complementary
#5F1C94 #8D941C #1C9423
monochromatic
#1D092D #3E1261 #5F1C94 #8026C7 #9E4DDD

Accessibility & contrast

On white

10.09
#5F1C94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#5F1C94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1C94
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1C94#FFFFFF#000000##FFFFFF
##5F1C941.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f1c94;
/* rgb */ color: rgb(95, 28, 148);
/* oklch */ color: oklch(40.1% 0.181 304.4);
Tailwind
colors: {
  custom: {
    50: '#9261b4',
    500: '#5f1c94',
    950: '#000000',
  },
}
SCSS
$custom: #5f1c94;
$custom-light: #9261b4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1c94",
  "rgb": {
    "r": 95,
    "g": 28,
    "b": 148
  },
  "hsl": {
    "h": 273.5,
    "s": 68.182,
    "l": 34.51
  },
  "oklch": {
    "l": 0.40116,
    "c": 0.18082,
    "h": 304.4
  },
  "luminance": 0.05402
}

Semantic roles & 50–950 ramp

primary
#5F1C94
secondary
#7FC04C
accent
#EB3D8A
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0511
muted
#7E7A80

Preview Lab

Preview with #5F1C94

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

Preview Lab → · Contrast checker → · Palette generator →

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