#5F298E#5F298E

#5F298E is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.0% C 0.160 H 304.7°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#5F298E
RGBrgb(95, 41, 142)
HSLhsl(272, 55%, 36%)
HSVhsv(272, 71%, 56%)
CMYKcmyk(33.1%, 71.1%, 0%, 44.3%)
CIE-LABlab(29.34, 43.66, -46.21)
CIE-LCHlch(29.34, 63.57, 313.38°)
OKLaboklab(41.02% 0.091 -0.1313)
OKLCHoklch(41.02% 0.16 304.7)
XYZxyz(10.3936, 5.9718, 26.1911)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F298E #588E29
analogous
#2C298E #5F298E #8E298A
triadic
#5F298E #8E5F29 #298E5F
tetradic
#5F298E #8E2C29 #588E29 #298A8E
square
#5F298E #8E2C29 #588E29 #298A8E
split-complementary
#5F298E #8A8E29 #298E2C
monochromatic
#1F0E2F #3F1B5F #5F298E #7F37BD #9D60D1

Accessibility & contrast

On white

9.57
#5F298E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5F298E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F298E
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F298E#FFFFFF#000000##FFFFFF
##5F298E1.009.572.199.57
#FFFFFF9.571.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004491
Deuteranopia (green-blind)
#00458C
Tritanopia (blue-blind)
#564058
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5f298e;
/* rgb */ color: rgb(95, 41, 142);
/* oklch */ color: oklch(41.0% 0.160 304.7);
Tailwind
colors: {
  custom: {
    50: '#9167b0',
    500: '#5f298e',
    950: '#000000',
  },
}
SCSS
$custom: #5f298e;
$custom-light: #9167b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f298e",
  "rgb": {
    "r": 95,
    "g": 41,
    "b": 142
  },
  "hsl": {
    "h": 272.079,
    "s": 55.191,
    "l": 35.882
  },
  "oklch": {
    "l": 0.41017,
    "c": 0.15975,
    "h": 304.7
  },
  "luminance": 0.05972
}

Semantic roles & 50–950 ramp

primary
#5F298E
secondary
#86B75C
accent
#DF498F
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5F298E

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

Preview Lab → · Contrast checker → · Palette generator →

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