#5F299D#5F299D

#5F299D is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.2% C 0.176 H 300.0°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#5F299D
RGBrgb(95, 41, 157)
HSLhsl(268, 59%, 39%)
HSVhsv(268, 74%, 62%)
CMYKcmyk(39.5%, 73.9%, 0%, 38.4%)
CIE-LABlab(30.53, 47.44, -53.48)
CIE-LCHlch(30.53, 71.49, 311.58°)
OKLaboklab(42.23% 0.0882 -0.1527)
OKLCHoklch(42.23% 0.176 300)
XYZxyz(11.5965, 6.4530, 32.5263)
Luminance0.0645 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F299D #679D29
analogous
#292D9D #5F299D #99299D
triadic
#5F299D #9D5F29 #299D5F
tetradic
#5F299D #9D292D #679D29 #299D99
square
#5F299D #9D292D #679D29 #299D99
split-complementary
#5F299D #9D9929 #2D9D29
monochromatic
#24103C #421C6C #5F299D #7D38CB #9C69D8

Accessibility & contrast

On white

9.17
#5F299D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#5F299D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F299D
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F299D#FFFFFF#000000##FFFFFF
##5F299D1.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A0
Deuteranopia (green-blind)
#00479B
Tritanopia (blue-blind)
#514661
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5f299d;
/* rgb */ color: rgb(95, 41, 157);
/* oklch */ color: oklch(42.2% 0.176 300.0);
Tailwind
colors: {
  custom: {
    50: '#9268bb',
    500: '#5f299d',
    950: '#000000',
  },
}
SCSS
$custom: #5f299d;
$custom-light: #9268bb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f299d",
  "rgb": {
    "r": 95,
    "g": 41,
    "b": 157
  },
  "hsl": {
    "h": 267.931,
    "s": 58.586,
    "l": 38.824
  },
  "oklch": {
    "l": 0.42232,
    "c": 0.17634,
    "h": 300
  },
  "luminance": 0.06453
}

Semantic roles & 50–950 ramp

primary
#5F299D
secondary
#94BE64
accent
#E24699
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F299D

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

Preview Lab → · Contrast checker → · Palette generator →

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