#5F299E#5F299E

#5F299E is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.3% C 0.177 H 299.7°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#5F299E
RGBrgb(95, 41, 158)
HSLhsl(268, 59%, 39%)
HSVhsv(268, 74%, 62%)
CMYKcmyk(39.9%, 74.1%, 0%, 38%)
CIE-LABlab(30.61, 47.69, -53.95)
CIE-LCHlch(30.61, 72.01, 311.48°)
OKLaboklab(42.32% 0.088 -0.1541)
OKLCHoklch(42.32% 0.177 299.7)
XYZxyz(11.6823, 6.4873, 32.9778)
Luminance0.0649 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F299E #689E29
analogous
#292E9E #5F299E #9A299E
triadic
#5F299E #9E5F29 #299E5F
tetradic
#5F299E #9E292E #689E29 #299E9A
square
#5F299E #9E292E #689E29 #299E9A
split-complementary
#5F299E #9E9A29 #2E9E29
monochromatic
#25103D #421C6D #5F299E #7C39CC #9C69D8

Accessibility & contrast

On white

9.14
#5F299E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F299E
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F299E#FFFFFF#000000##FFFFFF
##5F299E1.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A1
Deuteranopia (green-blind)
#00479C
Tritanopia (blue-blind)
#504761
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5f299e;
/* rgb */ color: rgb(95, 41, 158);
/* oklch */ color: oklch(42.3% 0.177 299.7);
Tailwind
colors: {
  custom: {
    50: '#9268bc',
    500: '#5f299e',
    950: '#000000',
  },
}
SCSS
$custom: #5f299e;
$custom-light: #9268bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f299e",
  "rgb": {
    "r": 95,
    "g": 41,
    "b": 158
  },
  "hsl": {
    "h": 267.692,
    "s": 58.794,
    "l": 39.02
  },
  "oklch": {
    "l": 0.42316,
    "c": 0.17744,
    "h": 299.7
  },
  "luminance": 0.06487
}

Semantic roles & 50–950 ramp

primary
#5F299E
secondary
#95BF64
accent
#E2469A
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F299E

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

Preview Lab → · Contrast checker → · Palette generator →

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