#5F29A9#5F29A9

#5F29A9 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.3% C 0.189 H 296.8°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#5F29A9
RGBrgb(95, 41, 169)
HSLhsl(265, 61%, 41%)
HSVhsv(265, 76%, 66%)
CMYKcmyk(43.8%, 75.7%, 0%, 33.7%)
CIE-LABlab(31.54, 50.52, -59.08)
CIE-LCHlch(31.54, 77.73, 310.53°)
OKLaboklab(43.26% 0.0854 -0.1691)
OKLCHoklch(43.26% 0.189 296.8)
XYZxyz(12.6718, 6.8831, 38.1894)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F29A9 #73A929
analogous
#2933A9 #5F29A9 #9F29A9
triadic
#5F29A9 #A95F29 #29A95F
tetradic
#5F29A9 #A92933 #73A929 #29A99F
square
#5F29A9 #A92933 #73A929 #29A99F
split-complementary
#5F29A9 #A99F29 #33A929
monochromatic
#281146 #431D78 #5F29A9 #7C3FD0 #9E70DC

Accessibility & contrast

On white

8.84
#5F29A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#5F29A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F29A9
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F29A9#FFFFFF#000000##FFFFFF
##5F29A91.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAD
Deuteranopia (green-blind)
#0049A7
Tritanopia (blue-blind)
#4B4B67
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5f29a9;
/* rgb */ color: rgb(95, 41, 169);
/* oklch */ color: oklch(43.3% 0.189 296.8);
Tailwind
colors: {
  custom: {
    50: '#9369c4',
    500: '#5f29a9',
    950: '#000000',
  },
}
SCSS
$custom: #5f29a9;
$custom-light: #9369c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f29a9",
  "rgb": {
    "r": 95,
    "g": 41,
    "b": 169
  },
  "hsl": {
    "h": 265.313,
    "s": 60.952,
    "l": 41.176
  },
  "oklch": {
    "l": 0.43258,
    "c": 0.18948,
    "h": 296.8
  },
  "luminance": 0.06883
}

Semantic roles & 50–950 ramp

primary
#5F29A9
secondary
#9EC36A
accent
#E444A0
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F29A9

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

Preview Lab → · Contrast checker → · Palette generator →

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