#5F2D9F#5F2D9F

#5F2D9F is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.9% C 0.174 H 298.9°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#5F2D9F
RGBrgb(95, 45, 159)
HSLhsl(266, 56%, 40%)
HSVhsv(266, 72%, 62%)
CMYKcmyk(40.3%, 71.7%, 0%, 37.6%)
CIE-LABlab(31.38, 46.02, -53.31)
CIE-LCHlch(31.38, 70.43, 310.80°)
OKLaboklab(42.88% 0.0839 -0.1522)
OKLCHoklch(42.88% 0.174 298.9)
XYZxyz(11.9141, 6.8127, 33.4815)
Luminance0.0681 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2D9F #6D9F2D
analogous
#2D349F #5F2D9F #982D9F
triadic
#5F2D9F #9F5F2D #2D9F5F
tetradic
#5F2D9F #9F2D34 #6D9F2D #2D9F98
square
#5F2D9F #9F2D34 #6D9F2D #2D9F98
split-complementary
#5F2D9F #9F982D #349F2D
monochromatic
#261240 #43206F #5F2D9F #7C40C9 #9D70D6

Accessibility & contrast

On white

8.89
#5F2D9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#5F2D9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2D9F
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2D9F#FFFFFF#000000##FFFFFF
##5F2D9F1.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA2
Deuteranopia (green-blind)
#00499D
Tritanopia (blue-blind)
#504963
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5f2d9f;
/* rgb */ color: rgb(95, 45, 159);
/* oklch */ color: oklch(42.9% 0.174 298.9);
Tailwind
colors: {
  custom: {
    50: '#926abc',
    500: '#5f2d9f',
    950: '#000000',
  },
}
SCSS
$custom: #5f2d9f;
$custom-light: #926abc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2d9f",
  "rgb": {
    "r": 95,
    "g": 45,
    "b": 159
  },
  "hsl": {
    "h": 266.316,
    "s": 55.882,
    "l": 40
  },
  "oklch": {
    "l": 0.42884,
    "c": 0.17377,
    "h": 298.9
  },
  "luminance": 0.06813
}

Semantic roles & 50–950 ramp

primary
#5F2D9F
secondary
#99BE6A
accent
#DF499D
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5F2D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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