#5F29B2#5F29B2

#5F29B2 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 44.1% C 0.199 H 294.6°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#5F29B2
RGBrgb(95, 41, 178)
HSLhsl(264, 63%, 43%)
HSVhsv(264, 77%, 70%)
CMYKcmyk(46.6%, 77%, 0%, 30.2%)
CIE-LABlab(32.33, 52.85, -63.17)
CIE-LCHlch(32.33, 82.36, 309.92°)
OKLaboklab(44.06% 0.083 -0.1811)
OKLCHoklch(44.06% 0.199 294.6)
XYZxyz(13.5459, 7.2327, 42.7932)
Luminance0.0723 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F29B2 #7CB229
analogous
#2937B2 #5F29B2 #A429B2
triadic
#5F29B2 #B25F29 #29B25F
tetradic
#5F29B2 #B22937 #7CB229 #29B2A4
square
#5F29B2 #B22937 #7CB229 #29B2A4
split-complementary
#5F29B2 #B2A429 #37B229
monochromatic
#2A124F #441E80 #5F29B2 #7D44D4 #A076DF

Accessibility & contrast

On white

8.58
#5F29B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#5F29B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F29B2
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F29B2#FFFFFF#000000##FFFFFF
##5F29B21.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB6
Deuteranopia (green-blind)
#004AAF
Tritanopia (blue-blind)
#474F6C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5f29b2;
/* rgb */ color: rgb(95, 41, 178);
/* oklch */ color: oklch(44.1% 0.199 294.6);
Tailwind
colors: {
  custom: {
    50: '#9569ca',
    500: '#5f29b2',
    950: '#000000',
  },
}
SCSS
$custom: #5f29b2;
$custom-light: #9569ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5f29b2",
  "rgb": {
    "r": 95,
    "g": 41,
    "b": 178
  },
  "hsl": {
    "h": 263.65,
    "s": 62.557,
    "l": 42.941
  },
  "oklch": {
    "l": 0.44057,
    "c": 0.19925,
    "h": 294.6
  },
  "luminance": 0.07233
}

Semantic roles & 50–950 ramp

primary
#5F29B2
secondary
#A5C770
accent
#E642A5
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F29B2

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

Preview Lab → · Contrast checker → · Palette generator →

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