#5F29B4#5F29B4

#5F29B4 is a dark, highly saturated violet. Relative luminance 0.073; OKLCH L 44.2% C 0.201 H 294.2°. Best body text is #FFFFFF at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#5F29B4
RGBrgb(95, 41, 180)
HSLhsl(263, 63%, 43%)
HSVhsv(263, 77%, 71%)
CMYKcmyk(47.2%, 77.2%, 0%, 29.4%)
CIE-LABlab(32.51, 53.37, -64.07)
CIE-LCHlch(32.51, 83.38, 309.80°)
OKLaboklab(44.24% 0.0825 -0.1837)
OKLCHoklch(44.24% 0.201 294.2)
XYZxyz(13.7482, 7.3136, 43.8585)
Luminance0.0731 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F29B4 #7EB429
analogous
#2939B4 #5F29B4 #A429B4
triadic
#5F29B4 #B45F29 #29B45F
tetradic
#5F29B4 #B42939 #7EB429 #29B4A4
square
#5F29B4 #B42939 #7EB429 #29B4A4
split-complementary
#5F29B4 #B4A429 #39B429
monochromatic
#2A1250 #451E82 #5F29B4 #7D45D5 #A077E0

Accessibility & contrast

On white

8.53
#5F29B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#5F29B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F29B4
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F29B4#FFFFFF#000000##FFFFFF
##5F29B41.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB8
Deuteranopia (green-blind)
#004AB1
Tritanopia (blue-blind)
#464F6E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5f29b4;
/* rgb */ color: rgb(95, 41, 180);
/* oklch */ color: oklch(44.2% 0.201 294.2);
Tailwind
colors: {
  custom: {
    50: '#9569cc',
    500: '#5f29b4',
    950: '#000000',
  },
}
SCSS
$custom: #5f29b4;
$custom-light: #9569cc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f29b4",
  "rgb": {
    "r": 95,
    "g": 41,
    "b": 180
  },
  "hsl": {
    "h": 263.309,
    "s": 62.896,
    "l": 43.333
  },
  "oklch": {
    "l": 0.44238,
    "c": 0.20141,
    "h": 294.2
  },
  "luminance": 0.07314
}

Semantic roles & 50–950 ramp

primary
#5F29B4
secondary
#A6C871
accent
#E642A6
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F29B4

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

Preview Lab → · Contrast checker → · Palette generator →

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