#5F29AB#5F29AB

#5F29AB is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.4% C 0.192 H 296.3°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#5F29AB
RGBrgb(95, 41, 171)
HSLhsl(265, 61%, 42%)
HSVhsv(265, 76%, 67%)
CMYKcmyk(44.4%, 76%, 0%, 32.9%)
CIE-LABlab(31.71, 51.03, -60.00)
CIE-LCHlch(31.71, 78.77, 310.38°)
OKLaboklab(43.43% 0.0849 -0.1718)
OKLCHoklch(43.43% 0.192 296.3)
XYZxyz(12.8610, 6.9588, 39.1857)
Luminance0.0696 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F29AB #75AB29
analogous
#2934AB #5F29AB #A029AB
triadic
#5F29AB #AB5F29 #29AB5F
tetradic
#5F29AB #AB2934 #75AB29 #29ABA0
square
#5F29AB #AB2934 #75AB29 #29ABA0
split-complementary
#5F29AB #ABA029 #34AB29
monochromatic
#281148 #441D7A #5F29AB #7C40D1 #9E71DD

Accessibility & contrast

On white

8.78
#5F29AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#5F29AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F29AB
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F29AB#FFFFFF#000000##FFFFFF
##5F29AB1.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAF
Deuteranopia (green-blind)
#0049A9
Tritanopia (blue-blind)
#4A4C68
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5f29ab;
/* rgb */ color: rgb(95, 41, 171);
/* oklch */ color: oklch(43.4% 0.192 296.3);
Tailwind
colors: {
  custom: {
    50: '#9469c5',
    500: '#5f29ab',
    950: '#000000',
  },
}
SCSS
$custom: #5f29ab;
$custom-light: #9469c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f29ab",
  "rgb": {
    "r": 95,
    "g": 41,
    "b": 171
  },
  "hsl": {
    "h": 264.923,
    "s": 61.321,
    "l": 41.569
  },
  "oklch": {
    "l": 0.43434,
    "c": 0.19166,
    "h": 296.3
  },
  "luminance": 0.06959
}

Semantic roles & 50–950 ramp

primary
#5F29AB
secondary
#9FC46C
accent
#E443A2
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F29AB

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

Preview Lab → · Contrast checker → · Palette generator →

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