#5F29A3#5F29A3

#5F29A3 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.7% C 0.183 H 298.4°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#5F29A3
RGBrgb(95, 41, 163)
HSLhsl(267, 60%, 40%)
HSVhsv(267, 75%, 64%)
CMYKcmyk(41.7%, 74.8%, 0%, 36.1%)
CIE-LABlab(31.03, 48.97, -56.30)
CIE-LCHlch(31.03, 74.62, 311.02°)
OKLaboklab(42.74% 0.0869 -0.161)
OKLCHoklch(42.74% 0.183 298.4)
XYZxyz(12.1214, 6.6629, 35.2907)
Luminance0.0666 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F29A3 #6DA329
analogous
#2930A3 #5F29A3 #9C29A3
triadic
#5F29A3 #A35F29 #29A35F
tetradic
#5F29A3 #A32930 #6DA329 #29A39C
square
#5F29A3 #A32930 #6DA329 #29A39C
split-complementary
#5F29A3 #A39C29 #30A329
monochromatic
#261041 #421D72 #5F29A3 #7C3BCE #9D6CDA

Accessibility & contrast

On white

9.00
#5F29A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#5F29A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F29A3
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F29A3#FFFFFF#000000##FFFFFF
##5F29A31.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A6
Deuteranopia (green-blind)
#0048A1
Tritanopia (blue-blind)
#4E4964
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5f29a3;
/* rgb */ color: rgb(95, 41, 163);
/* oklch */ color: oklch(42.7% 0.183 298.4);
Tailwind
colors: {
  custom: {
    50: '#9368bf',
    500: '#5f29a3',
    950: '#000000',
  },
}
SCSS
$custom: #5f29a3;
$custom-light: #9368bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5f29a3",
  "rgb": {
    "r": 95,
    "g": 41,
    "b": 163
  },
  "hsl": {
    "h": 266.557,
    "s": 59.804,
    "l": 40
  },
  "oklch": {
    "l": 0.42739,
    "c": 0.18292,
    "h": 298.4
  },
  "luminance": 0.06663
}

Semantic roles & 50–950 ramp

primary
#5F29A3
secondary
#99C167
accent
#E3459D
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F29A3

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

Preview Lab → · Contrast checker → · Palette generator →

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