#5F1B94#5F1B94

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

Color values

HEX#5F1B94
RGBrgb(95, 27, 148)
HSLhsl(274, 69%, 34%)
HSVhsv(274, 82%, 58%)
CMYKcmyk(35.8%, 81.8%, 0%, 42%)
CIE-LABlab(27.72, 51.11, -52.54)
CIE-LCHlch(27.72, 73.30, 314.21°)
OKLaboklab(40.03% 0.1029 -0.1498)
OKLCHoklch(40.03% 0.182 304.5)
XYZxyz(10.4553, 5.3549, 28.4940)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1B94 #50941B
analogous
#231B94 #5F1B94 #941B8D
triadic
#5F1B94 #945F1B #1B945F
tetradic
#5F1B94 #94231B #50941B #1B8D94
square
#5F1B94 #94231B #50941B #1B8D94
split-complementary
#5F1B94 #8D941B #1B9423
monochromatic
#1D082C #3E1260 #5F1B94 #8024C8 #9E4BDE

Accessibility & contrast

On white

10.14
#5F1B94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#5F1B94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1B94
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1B94#FFFFFF#000000##FFFFFF
##5F1B941.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f1b94;
/* rgb */ color: rgb(95, 27, 148);
/* oklch */ color: oklch(40.0% 0.182 304.5);
Tailwind
colors: {
  custom: {
    50: '#9261b4',
    500: '#5f1b94',
    950: '#000000',
  },
}
SCSS
$custom: #5f1b94;
$custom-light: #9261b4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1b94",
  "rgb": {
    "r": 95,
    "g": 27,
    "b": 148
  },
  "hsl": {
    "h": 273.719,
    "s": 69.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.40028,
    "c": 0.18176,
    "h": 304.5
  },
  "luminance": 0.05355
}

Semantic roles & 50–950 ramp

primary
#5F1B94
secondary
#7EC04B
accent
#EC3C89
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0511
muted
#7E7A80

Preview Lab

Preview with #5F1B94

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

Preview Lab → · Contrast checker → · Palette generator →

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