#5F299F#5F299F

#5F299F is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.4% C 0.179 H 299.5°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#5F299F
RGBrgb(95, 41, 159)
HSLhsl(267, 59%, 39%)
HSVhsv(267, 74%, 62%)
CMYKcmyk(40.3%, 74.2%, 0%, 37.6%)
CIE-LABlab(30.69, 47.95, -54.42)
CIE-LCHlch(30.69, 72.53, 311.38°)
OKLaboklab(42.4% 0.0878 -0.1554)
OKLCHoklch(42.4% 0.179 299.5)
XYZxyz(11.7687, 6.5218, 33.4330)
Luminance0.0652 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F299F #699F29
analogous
#292E9F #5F299F #9A299F
triadic
#5F299F #9F5F29 #299F5F
tetradic
#5F299F #9F292E #699F29 #299F9A
square
#5F299F #9F292E #699F29 #299F9A
split-complementary
#5F299F #9F9A29 #2E9F29
monochromatic
#25103E #421C6E #5F299F #7C39CC #9D6AD9

Accessibility & contrast

On white

9.11
#5F299F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#5F299F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F299F
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F299F#FFFFFF#000000##FFFFFF
##5F299F1.009.112.309.11
#FFFFFF9.111.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A2
Deuteranopia (green-blind)
#00479D
Tritanopia (blue-blind)
#504762
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5f299f;
/* rgb */ color: rgb(95, 41, 159);
/* oklch */ color: oklch(42.4% 0.179 299.5);
Tailwind
colors: {
  custom: {
    50: '#9268bc',
    500: '#5f299f',
    950: '#000000',
  },
}
SCSS
$custom: #5f299f;
$custom-light: #9268bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f299f",
  "rgb": {
    "r": 95,
    "g": 41,
    "b": 159
  },
  "hsl": {
    "h": 267.458,
    "s": 59,
    "l": 39.216
  },
  "oklch": {
    "l": 0.424,
    "c": 0.17854,
    "h": 299.5
  },
  "luminance": 0.06522
}

Semantic roles & 50–950 ramp

primary
#5F299F
secondary
#96BF65
accent
#E2469B
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F299F

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

Preview Lab → · Contrast checker → · Palette generator →

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