#5F29A8#5F29A8

#5F29A8 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.2% C 0.188 H 297.1°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#5F29A8
RGBrgb(95, 41, 168)
HSLhsl(266, 61%, 41%)
HSVhsv(266, 76%, 66%)
CMYKcmyk(43.5%, 75.6%, 0%, 34.1%)
CIE-LABlab(31.45, 50.26, -58.62)
CIE-LCHlch(31.45, 77.22, 310.61°)
OKLaboklab(43.17% 0.0857 -0.1678)
OKLCHoklch(43.17% 0.188 297.1)
XYZxyz(12.5783, 6.8457, 37.6968)
Luminance0.0685 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F29A8 #72A829
analogous
#2932A8 #5F29A8 #9E29A8
triadic
#5F29A8 #A85F29 #29A85F
tetradic
#5F29A8 #A82932 #72A829 #29A89E
square
#5F29A8 #A82932 #72A829 #29A89E
split-complementary
#5F29A8 #A89E29 #32A829
monochromatic
#271146 #431D77 #5F29A8 #7C3ED0 #9E6FDC

Accessibility & contrast

On white

8.86
#5F29A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#5F29A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F29A8
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F29A8#FFFFFF#000000##FFFFFF
##5F29A81.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAC
Deuteranopia (green-blind)
#0048A6
Tritanopia (blue-blind)
#4C4B67
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5f29a8;
/* rgb */ color: rgb(95, 41, 168);
/* oklch */ color: oklch(43.2% 0.188 297.1);
Tailwind
colors: {
  custom: {
    50: '#9368c3',
    500: '#5f29a8',
    950: '#000000',
  },
}
SCSS
$custom: #5f29a8;
$custom-light: #9368c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f29a8",
  "rgb": {
    "r": 95,
    "g": 41,
    "b": 168
  },
  "hsl": {
    "h": 265.512,
    "s": 60.766,
    "l": 40.98
  },
  "oklch": {
    "l": 0.43171,
    "c": 0.18839,
    "h": 297.1
  },
  "luminance": 0.06846
}

Semantic roles & 50–950 ramp

primary
#5F29A8
secondary
#9DC36A
accent
#E444A0
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5F29A8

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

Preview Lab → · Contrast checker → · Palette generator →

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