#5F29A2#5F29A2

#5F29A2 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.7% C 0.182 H 298.6°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#5F29A2
RGBrgb(95, 41, 162)
HSLhsl(267, 60%, 40%)
HSVhsv(267, 75%, 64%)
CMYKcmyk(41.4%, 74.7%, 0%, 36.5%)
CIE-LABlab(30.94, 48.72, -55.83)
CIE-LCHlch(30.94, 74.10, 311.11°)
OKLaboklab(42.65% 0.0871 -0.1596)
OKLCHoklch(42.65% 0.182 298.6)
XYZxyz(12.0322, 6.6272, 34.8207)
Luminance0.0663 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F29A2 #6CA229
analogous
#292FA2 #5F29A2 #9C29A2
triadic
#5F29A2 #A25F29 #29A25F
tetradic
#5F29A2 #A2292F #6CA229 #29A29C
square
#5F29A2 #A2292F #6CA229 #29A29C
split-complementary
#5F29A2 #A29C29 #2FA229
monochromatic
#261040 #421D71 #5F29A2 #7C3BCD #9D6CDA

Accessibility & contrast

On white

9.03
#5F29A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F29A2
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F29A2#FFFFFF#000000##FFFFFF
##5F29A21.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A5
Deuteranopia (green-blind)
#0048A0
Tritanopia (blue-blind)
#4F4863
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5f29a2;
/* rgb */ color: rgb(95, 41, 162);
/* oklch */ color: oklch(42.7% 0.182 298.6);
Tailwind
colors: {
  custom: {
    50: '#9368be',
    500: '#5f29a2',
    950: '#000000',
  },
}
SCSS
$custom: #5f29a2;
$custom-light: #9368be;
$custom-dark: #000000;
JSON
{
  "hex": "#5f29a2",
  "rgb": {
    "r": 95,
    "g": 41,
    "b": 162
  },
  "hsl": {
    "h": 266.777,
    "s": 59.606,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42654,
    "c": 0.18183,
    "h": 298.6
  },
  "luminance": 0.06627
}

Semantic roles & 50–950 ramp

primary
#5F29A2
secondary
#98C067
accent
#E3459C
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F29A2

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

Preview Lab → · Contrast checker → · Palette generator →

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