#5F1FA6#5F1FA6

#5F1FA6 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 42.0% C 0.196 H 298.8°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#5F1FA6
RGBrgb(95, 31, 166)
HSLhsl(268, 69%, 39%)
HSVhsv(268, 81%, 65%)
CMYKcmyk(42.8%, 81.3%, 0%, 34.9%)
CIE-LABlab(29.83, 53.93, -60.08)
CIE-LCHlch(29.83, 80.73, 311.91°)
OKLaboklab(41.98% 0.0944 -0.172)
OKLCHoklch(41.98% 0.196 298.8)
XYZxyz(12.0905, 6.1659, 36.6221)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1FA6 #66A61F
analogous
#1F23A6 #5F1FA6 #A21FA6
triadic
#5F1FA6 #A65F1F #1FA65F
tetradic
#5F1FA6 #A61F23 #66A61F #1FA6A2
square
#5F1FA6 #A61F23 #66A61F #1FA6A2
split-complementary
#5F1FA6 #A6A21F #23A61F
monochromatic
#240C3F #411572 #5F1FA6 #7D2BD7 #9C5EE1

Accessibility & contrast

On white

9.40
#5F1FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#5F1FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1FA6
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1FA6#FFFFFF#000000##FFFFFF
##5F1FA61.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AA
Deuteranopia (green-blind)
#0045A3
Tritanopia (blue-blind)
#4D4563
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5f1fa6;
/* rgb */ color: rgb(95, 31, 166);
/* oklch */ color: oklch(42.0% 0.196 298.8);
Tailwind
colors: {
  custom: {
    50: '#9464c1',
    500: '#5f1fa6',
    950: '#000000',
  },
}
SCSS
$custom: #5f1fa6;
$custom-light: #9464c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1fa6",
  "rgb": {
    "r": 95,
    "g": 31,
    "b": 166
  },
  "hsl": {
    "h": 268.444,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.41981,
    "c": 0.19615,
    "h": 298.8
  },
  "luminance": 0.06166
}

Semantic roles & 50–950 ramp

primary
#5F1FA6
secondary
#93C55B
accent
#EB3C98
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F1FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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