#5F29B6#5F29B6

#5F29B6 is a dark, highly saturated violet. Relative luminance 0.074; OKLCH L 44.4% C 0.204 H 293.7°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#5F29B6
RGBrgb(95, 41, 182)
HSLhsl(263, 63%, 44%)
HSVhsv(263, 77%, 71%)
CMYKcmyk(47.8%, 77.5%, 0%, 28.6%)
CIE-LABlab(32.69, 53.89, -64.96)
CIE-LCHlch(32.69, 84.40, 309.68°)
OKLaboklab(44.42% 0.0819 -0.1864)
OKLCHoklch(44.42% 0.204 293.7)
XYZxyz(13.9534, 7.3957, 44.9392)
Luminance0.0740 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F29B6 #80B629
analogous
#2939B6 #5F29B6 #A529B6
triadic
#5F29B6 #B65F29 #29B65F
tetradic
#5F29B6 #B62939 #80B629 #29B6A5
square
#5F29B6 #B62939 #80B629 #29B6A5
split-complementary
#5F29B6 #B6A529 #39B629
monochromatic
#2B1252 #451E84 #5F29B6 #7D47D5 #A179E1

Accessibility & contrast

On white

8.47
#5F29B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#5F29B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F29B6
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F29B6#FFFFFF#000000##FFFFFF
##5F29B61.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBA
Deuteranopia (green-blind)
#004AB3
Tritanopia (blue-blind)
#44506F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5f29b6;
/* rgb */ color: rgb(95, 41, 182);
/* oklch */ color: oklch(44.4% 0.204 293.7);
Tailwind
colors: {
  custom: {
    50: '#9569cd',
    500: '#5f29b6',
    950: '#000000',
  },
}
SCSS
$custom: #5f29b6;
$custom-light: #9569cd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f29b6",
  "rgb": {
    "r": 95,
    "g": 41,
    "b": 182
  },
  "hsl": {
    "h": 262.979,
    "s": 63.229,
    "l": 43.725
  },
  "oklch": {
    "l": 0.44419,
    "c": 0.20358,
    "h": 293.7
  },
  "luminance": 0.07396
}

Semantic roles & 50–950 ramp

primary
#5F29B6
secondary
#A8C972
accent
#E642A7
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5F29B6

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

Preview Lab → · Contrast checker → · Palette generator →

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