#5F29B8#5F29B8

#5F29B8 is a dark, highly saturated violet. Relative luminance 0.075; OKLCH L 44.6% C 0.206 H 293.3°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#5F29B8
RGBrgb(95, 41, 184)
HSLhsl(263, 64%, 44%)
HSVhsv(263, 78%, 72%)
CMYKcmyk(48.4%, 77.7%, 0%, 27.8%)
CIE-LABlab(32.87, 54.41, -65.84)
CIE-LCHlch(32.87, 85.42, 309.57°)
OKLaboklab(44.6% 0.0813 -0.189)
OKLCHoklch(44.6% 0.206 293.3)
XYZxyz(14.1616, 7.4790, 46.0355)
Luminance0.0748 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F29B8 #82B829
analogous
#293BB8 #5F29B8 #A729B8
triadic
#5F29B8 #B85F29 #29B85F
tetradic
#5F29B8 #B8293B #82B829 #29B8A7
square
#5F29B8 #B8293B #82B829 #29B8A7
split-complementary
#5F29B8 #B8A729 #3BB829
monochromatic
#2B1354 #451E86 #5F29B8 #7E48D6 #A17AE1

Accessibility & contrast

On white

8.41
#5F29B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#5F29B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F29B8
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F29B8#FFFFFF#000000##FFFFFF
##5F29B81.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBC
Deuteranopia (green-blind)
#004BB5
Tritanopia (blue-blind)
#435170
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5f29b8;
/* rgb */ color: rgb(95, 41, 184);
/* oklch */ color: oklch(44.6% 0.206 293.3);
Tailwind
colors: {
  custom: {
    50: '#9569ce',
    500: '#5f29b8',
    950: '#000000',
  },
}
SCSS
$custom: #5f29b8;
$custom-light: #9569ce;
$custom-dark: #000000;
JSON
{
  "hex": "#5f29b8",
  "rgb": {
    "r": 95,
    "g": 41,
    "b": 184
  },
  "hsl": {
    "h": 262.657,
    "s": 63.556,
    "l": 44.118
  },
  "oklch": {
    "l": 0.44602,
    "c": 0.20573,
    "h": 293.3
  },
  "luminance": 0.07479
}

Semantic roles & 50–950 ramp

primary
#5F29B8
secondary
#A9C973
accent
#E741A8
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5F29B8

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

Preview Lab → · Contrast checker → · Palette generator →

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