#5F1CA9#5F1CA9

#5F1CA9 is a dark, highly saturated violet. Relative luminance 0.061; OKLCH L 42.0% C 0.202 H 298.2°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#5F1CA9
RGBrgb(95, 28, 169)
HSLhsl(269, 72%, 39%)
HSVhsv(269, 83%, 66%)
CMYKcmyk(43.8%, 83.4%, 0%, 33.7%)
CIE-LABlab(29.73, 55.74, -62.04)
CIE-LCHlch(29.73, 83.40, 311.94°)
OKLaboklab(42% 0.0954 -0.1777)
OKLCHoklch(42% 0.202 298.2)
XYZxyz(12.2941, 6.1278, 38.0635)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1CA9 #66A91C
analogous
#1C1FA9 #5F1CA9 #A51CA9
triadic
#5F1CA9 #A95F1C #1CA95F
tetradic
#5F1CA9 #A91C1F #66A91C #1CA9A5
square
#5F1CA9 #A91C1F #66A91C #1CA9A5
split-complementary
#5F1CA9 #A9A51C #1FA91C
monochromatic
#240B40 #411374 #5F1CA9 #7D27DB #9C5BE4

Accessibility & contrast

On white

9.44
#5F1CA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1CA9
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1CA9#FFFFFF#000000##FFFFFF
##5F1CA91.009.442.239.44
#FFFFFF9.441.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AD
Deuteranopia (green-blind)
#0045A6
Tritanopia (blue-blind)
#4C4665
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5f1ca9;
/* rgb */ color: rgb(95, 28, 169);
/* oklch */ color: oklch(42.0% 0.202 298.2);
Tailwind
colors: {
  custom: {
    50: '#9462c4',
    500: '#5f1ca9',
    950: '#000000',
  },
}
SCSS
$custom: #5f1ca9;
$custom-light: #9462c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1ca9",
  "rgb": {
    "r": 95,
    "g": 28,
    "b": 169
  },
  "hsl": {
    "h": 268.511,
    "s": 71.574,
    "l": 38.627
  },
  "oklch": {
    "l": 0.42,
    "c": 0.20171,
    "h": 298.2
  },
  "luminance": 0.06128
}

Semantic roles & 50–950 ramp

primary
#5F1CA9
secondary
#93C859
accent
#EE3998
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5F1CA9

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

Preview Lab → · Contrast checker → · Palette generator →

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