#5F1994#5F1994

#5F1994 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.9% C 0.184 H 304.7°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#5F1994
RGBrgb(95, 25, 148)
HSLhsl(274, 71%, 34%)
HSVhsv(274, 83%, 58%)
CMYKcmyk(35.8%, 83.1%, 0%, 42%)
CIE-LABlab(27.48, 51.82, -52.94)
CIE-LCHlch(27.48, 74.08, 314.39°)
OKLaboklab(39.86% 0.1044 -0.151)
OKLCHoklch(39.86% 0.184 304.7)
XYZxyz(10.4110, 5.2663, 28.4793)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1994 #4E9419
analogous
#211994 #5F1994 #94198C
triadic
#5F1994 #945F19 #19945F
tetradic
#5F1994 #942119 #4E9419 #198C94
square
#5F1994 #942119 #4E9419 #198C94
split-complementary
#5F1994 #8C9419 #199421
monochromatic
#1C072B #3D1060 #5F1994 #8122C8 #9E47E0

Accessibility & contrast

On white

10.23
#5F1994 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#5F1994 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1994
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1994#FFFFFF#000000##FFFFFF
##5F19941.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F97
Deuteranopia (green-blind)
#004192
Tritanopia (blue-blind)
#553B58
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5f1994;
/* rgb */ color: rgb(95, 25, 148);
/* oklch */ color: oklch(39.9% 0.184 304.7);
Tailwind
colors: {
  custom: {
    50: '#9260b4',
    500: '#5f1994',
    950: '#000000',
  },
}
SCSS
$custom: #5f1994;
$custom-light: #9260b4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1994",
  "rgb": {
    "r": 95,
    "g": 25,
    "b": 148
  },
  "hsl": {
    "h": 274.146,
    "s": 71.098,
    "l": 33.922
  },
  "oklch": {
    "l": 0.3986,
    "c": 0.18357,
    "h": 304.7
  },
  "luminance": 0.05266
}

Semantic roles & 50–950 ramp

primary
#5F1994
secondary
#7CC147
accent
#EE3A87
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0E0511
muted
#7E7980

Preview Lab

Preview with #5F1994

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

Preview Lab → · Contrast checker → · Palette generator →

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