#5F29A5#5F29A5

#5F29A5 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.9% C 0.185 H 297.8°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#5F29A5
RGBrgb(95, 41, 165)
HSLhsl(266, 60%, 40%)
HSVhsv(266, 75%, 65%)
CMYKcmyk(42.4%, 75.2%, 0%, 35.3%)
CIE-LABlab(31.20, 49.49, -57.23)
CIE-LCHlch(31.20, 75.66, 310.85°)
OKLaboklab(42.91% 0.0864 -0.1637)
OKLCHoklch(42.91% 0.185 297.8)
XYZxyz(12.3020, 6.7352, 36.2419)
Luminance0.0673 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F29A5 #6FA529
analogous
#2931A5 #5F29A5 #9D29A5
triadic
#5F29A5 #A55F29 #29A55F
tetradic
#5F29A5 #A52931 #6FA529 #29A59D
square
#5F29A5 #A52931 #6FA529 #29A59D
split-complementary
#5F29A5 #A59D29 #31A529
monochromatic
#271143 #431D74 #5F29A5 #7C3DCF #9D6EDB

Accessibility & contrast

On white

8.95
#5F29A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5F29A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F29A5
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F29A5#FFFFFF#000000##FFFFFF
##5F29A51.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA9
Deuteranopia (green-blind)
#0048A3
Tritanopia (blue-blind)
#4D4965
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5f29a5;
/* rgb */ color: rgb(95, 41, 165);
/* oklch */ color: oklch(42.9% 0.185 297.8);
Tailwind
colors: {
  custom: {
    50: '#9368c1',
    500: '#5f29a5',
    950: '#000000',
  },
}
SCSS
$custom: #5f29a5;
$custom-light: #9368c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f29a5",
  "rgb": {
    "r": 95,
    "g": 41,
    "b": 165
  },
  "hsl": {
    "h": 266.129,
    "s": 60.194,
    "l": 40.392
  },
  "oklch": {
    "l": 0.42911,
    "c": 0.18511,
    "h": 297.8
  },
  "luminance": 0.06735
}

Semantic roles & 50–950 ramp

primary
#5F29A5
secondary
#9BC268
accent
#E3449E
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F29A5

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

Preview Lab → · Contrast checker → · Palette generator →

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