#5F1F90#5F1F90

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

Color values

HEX#5F1F90
RGBrgb(95, 31, 144)
HSLhsl(274, 65%, 34%)
HSVhsv(274, 78%, 56%)
CMYKcmyk(34%, 78.5%, 0%, 43.5%)
CIE-LABlab(27.92, 48.64, -49.76)
CIE-LCHlch(27.92, 69.58, 314.35°)
OKLaboklab(40.06% 0.1006 -0.1417)
OKLCHoklch(40.06% 0.174 305.4)
XYZxyz(10.2422, 5.4266, 26.8880)
Luminance0.0543 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1F90 #50901F
analogous
#271F90 #5F1F90 #901F89
triadic
#5F1F90 #905F1F #1F905F
tetradic
#5F1F90 #90271F #50901F #1F8990
square
#5F1F90 #90271F #50901F #1F8990
split-complementary
#5F1F90 #89901F #1F9027
monochromatic
#1D092B #3E145E #5F1F90 #802AC2 #9E50D9

Accessibility & contrast

On white

10.07
#5F1F90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1F90
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1F90#FFFFFF#000000##FFFFFF
##5F1F901.0010.072.0910.07
#FFFFFF10.071.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f1f90;
/* rgb */ color: rgb(95, 31, 144);
/* oklch */ color: oklch(40.1% 0.174 305.4);
Tailwind
colors: {
  custom: {
    50: '#9162b1',
    500: '#5f1f90',
    950: '#000000',
  },
}
SCSS
$custom: #5f1f90;
$custom-light: #9162b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1f90",
  "rgb": {
    "r": 95,
    "g": 31,
    "b": 144
  },
  "hsl": {
    "h": 273.982,
    "s": 64.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.40059,
    "c": 0.17377,
    "h": 305.4
  },
  "luminance": 0.05426
}

Semantic roles & 50–950 ramp

primary
#5F1F90
secondary
#7EBC4E
accent
#E84089
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5F1F90

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

Preview Lab → · Contrast checker → · Palette generator →

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