#5F299C#5F299C

#5F299C is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.1% C 0.175 H 300.3°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#5F299C
RGBrgb(95, 41, 156)
HSLhsl(268, 58%, 39%)
HSVhsv(268, 74%, 61%)
CMYKcmyk(39.1%, 73.7%, 0%, 38.8%)
CIE-LABlab(30.45, 47.18, -53.00)
CIE-LCHlch(30.45, 70.96, 311.68°)
OKLaboklab(42.15% 0.0885 -0.1513)
OKLCHoklch(42.15% 0.175 300.3)
XYZxyz(11.5115, 6.4190, 32.0785)
Luminance0.0642 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F299C #669C29
analogous
#292C9C #5F299C #98299C
triadic
#5F299C #9C5F29 #299C5F
tetradic
#5F299C #9C292C #669C29 #299C98
square
#5F299C #9C292C #669C29 #299C98
split-complementary
#5F299C #9C9829 #2C9C29
monochromatic
#24103B #411C6C #5F299C #7D38CB #9C68D7

Accessibility & contrast

On white

9.20
#5F299C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#5F299C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F299C
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F299C#FFFFFF#000000##FFFFFF
##5F299C1.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479F
Deuteranopia (green-blind)
#00479A
Tritanopia (blue-blind)
#514660
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5f299c;
/* rgb */ color: rgb(95, 41, 156);
/* oklch */ color: oklch(42.1% 0.175 300.3);
Tailwind
colors: {
  custom: {
    50: '#9268ba',
    500: '#5f299c',
    950: '#000000',
  },
}
SCSS
$custom: #5f299c;
$custom-light: #9268ba;
$custom-dark: #000000;
JSON
{
  "hex": "#5f299c",
  "rgb": {
    "r": 95,
    "g": 41,
    "b": 156
  },
  "hsl": {
    "h": 268.174,
    "s": 58.376,
    "l": 38.627
  },
  "oklch": {
    "l": 0.42148,
    "c": 0.17523,
    "h": 300.3
  },
  "luminance": 0.06419
}

Semantic roles & 50–950 ramp

primary
#5F299C
secondary
#93BE63
accent
#E24699
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5F299C

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

Preview Lab → · Contrast checker → · Palette generator →

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