#5F299A#5F299A

#5F299A is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.0% C 0.173 H 300.9°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#5F299A
RGBrgb(95, 41, 154)
HSLhsl(269, 58%, 38%)
HSVhsv(269, 73%, 60%)
CMYKcmyk(38.3%, 73.4%, 0%, 39.6%)
CIE-LABlab(30.28, 46.68, -52.05)
CIE-LCHlch(30.28, 69.91, 311.89°)
OKLaboklab(41.98% 0.0889 -0.1485)
OKLCHoklch(41.98% 0.173 300.9)
XYZxyz(11.3436, 6.3518, 31.1940)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F299A #649A29
analogous
#292B9A #5F299A #97299A
triadic
#5F299A #9A5F29 #299A5F
tetradic
#5F299A #9A292B #649A29 #299A97
square
#5F299A #9A292B #649A29 #299A97
split-complementary
#5F299A #9A9729 #2B9A29
monochromatic
#230F39 #411C6A #5F299A #7D37CA #9C67D7

Accessibility & contrast

On white

9.25
#5F299A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#5F299A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F299A
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F299A#FFFFFF#000000##FFFFFF
##5F299A1.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479D
Deuteranopia (green-blind)
#004798
Tritanopia (blue-blind)
#52455F
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5f299a;
/* rgb */ color: rgb(95, 41, 154);
/* oklch */ color: oklch(42.0% 0.173 300.9);
Tailwind
colors: {
  custom: {
    50: '#9268b9',
    500: '#5f299a',
    950: '#000000',
  },
}
SCSS
$custom: #5f299a;
$custom-light: #9268b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f299a",
  "rgb": {
    "r": 95,
    "g": 41,
    "b": 154
  },
  "hsl": {
    "h": 268.673,
    "s": 57.949,
    "l": 38.235
  },
  "oklch": {
    "l": 0.41982,
    "c": 0.17302,
    "h": 300.9
  },
  "luminance": 0.06352
}

Semantic roles & 50–950 ramp

primary
#5F299A
secondary
#91BD62
accent
#E14797
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5F299A

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

Preview Lab → · Contrast checker → · Palette generator →

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