#5F1E90#5F1E90

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

Color values

HEX#5F1E90
RGBrgb(95, 30, 144)
HSLhsl(274, 66%, 34%)
HSVhsv(274, 79%, 56%)
CMYKcmyk(34%, 79.2%, 0%, 43.5%)
CIE-LABlab(27.78, 49.04, -49.98)
CIE-LCHlch(27.78, 70.02, 314.45°)
OKLaboklab(39.96% 0.1015 -0.1423)
OKLCHoklch(39.96% 0.175 305.5)
XYZxyz(10.2165, 5.3751, 26.8794)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1E90 #4F901E
analogous
#261E90 #5F1E90 #901E88
triadic
#5F1E90 #905F1E #1E905F
tetradic
#5F1E90 #90261E #4F901E #1E8890
square
#5F1E90 #90261E #4F901E #1E8890
split-complementary
#5F1E90 #88901E #1E9026
monochromatic
#1C092B #3E135D #5F1E90 #8029C3 #9E4EDA

Accessibility & contrast

On white

10.12
#5F1E90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1E90
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1E90#FFFFFF#000000##FFFFFF
##5F1E901.0010.122.0810.12
#FFFFFF10.121.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004093
Deuteranopia (green-blind)
#00428E
Tritanopia (blue-blind)
#563B57
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5f1e90;
/* rgb */ color: rgb(95, 30, 144);
/* oklch */ color: oklch(40.0% 0.175 305.5);
Tailwind
colors: {
  custom: {
    50: '#9262b1',
    500: '#5f1e90',
    950: '#000000',
  },
}
SCSS
$custom: #5f1e90;
$custom-light: #9262b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1e90",
  "rgb": {
    "r": 95,
    "g": 30,
    "b": 144
  },
  "hsl": {
    "h": 274.211,
    "s": 65.517,
    "l": 34.118
  },
  "oklch": {
    "l": 0.39962,
    "c": 0.17482,
    "h": 305.5
  },
  "luminance": 0.05375
}

Semantic roles & 50–950 ramp

primary
#5F1E90
secondary
#7DBD4D
accent
#E83F88
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5F1E90

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

Preview Lab → · Contrast checker → · Palette generator →

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