#5F296C#5F296C

#5F296C is a dark, vivid purple. Relative luminance 0.051; OKLCH L 38.6% C 0.122 H 319.5°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#5F296C
RGBrgb(95, 41, 108)
HSLhsl(288, 45%, 29%)
HSVhsv(288, 62%, 42%)
CMYKcmyk(12%, 62%, 0%, 57.6%)
CIE-LABlab(27.02, 35.66, -28.51)
CIE-LCHlch(27.02, 45.65, 321.36°)
OKLaboklab(38.61% 0.0929 -0.0794)
OKLCHoklch(38.61% 0.122 319.5)
XYZxyz(8.2187, 5.1018, 14.7363)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F296C #366C29
analogous
#3E296C #5F296C #6C2958
triadic
#5F296C #6C5F29 #296C5F
tetradic
#5F296C #6C3E29 #366C29 #29586C
square
#5F296C #6C3E29 #366C29 #29586C
split-complementary
#5F296C #586C29 #296C3E
monochromatic
#140816 #381840 #5F296C #863A98 #A952BD

Accessibility & contrast

On white

10.40
#5F296C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#5F296C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F296C
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F296C#FFFFFF#000000##FFFFFF
##5F296C1.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A3C6E
Deuteranopia (green-blind)
#2E426A
Tritanopia (blue-blind)
#5F3446
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5f296c;
/* rgb */ color: rgb(95, 41, 108);
/* oklch */ color: oklch(38.6% 0.122 319.5);
Tailwind
colors: {
  custom: {
    50: '#8e6696',
    500: '#5f296c',
    950: '#000000',
  },
}
SCSS
$custom: #5f296c;
$custom-light: #8e6696;
$custom-dark: #000000;
JSON
{
  "hex": "#5f296c",
  "rgb": {
    "r": 95,
    "g": 41,
    "b": 108
  },
  "hsl": {
    "h": 288.358,
    "s": 44.966,
    "l": 29.216
  },
  "oklch": {
    "l": 0.38605,
    "c": 0.12219,
    "h": 319.5
  },
  "luminance": 0.05101
}

Semantic roles & 50–950 ramp

primary
#5F296C
secondary
#619E53
accent
#D5536C
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0D060D
muted
#7D7A7E

Preview Lab

Preview with #5F296C

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

Preview Lab → · Contrast checker → · Palette generator →

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