#5F2A94#5F2A94

#5F2A94 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.6% C 0.165 H 302.6°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#5F2A94
RGBrgb(95, 42, 148)
HSLhsl(270, 56%, 37%)
HSVhsv(270, 72%, 58%)
CMYKcmyk(35.8%, 71.6%, 0%, 42%)
CIE-LABlab(29.98, 44.68, -48.87)
CIE-LCHlch(29.98, 66.22, 312.43°)
OKLaboklab(41.62% 0.0889 -0.1391)
OKLCHoklch(41.62% 0.165 302.6)
XYZxyz(10.8913, 6.2269, 28.6394)
Luminance0.0623 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2A94 #5F942A
analogous
#2A2A94 #5F2A94 #942A94
triadic
#5F2A94 #945F2A #2A945F
tetradic
#5F2A94 #942A2A #5F942A #2A9494
square
#5F2A94 #942A2A #5F942A #2A9494
split-complementary
#5F2A94 #94942A #2A942A
monochromatic
#220F35 #401C64 #5F2A94 #7E38C4 #9C65D3

Accessibility & contrast

On white

9.35
#5F2A94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#5F2A94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2A94
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2A94#FFFFFF#000000##FFFFFF
##5F2A941.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004697
Deuteranopia (green-blind)
#004692
Tritanopia (blue-blind)
#54435C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5f2a94;
/* rgb */ color: rgb(95, 42, 148);
/* oklch */ color: oklch(41.6% 0.165 302.6);
Tailwind
colors: {
  custom: {
    50: '#9168b4',
    500: '#5f2a94',
    950: '#000000',
  },
}
SCSS
$custom: #5f2a94;
$custom-light: #9168b4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2a94",
  "rgb": {
    "r": 95,
    "g": 42,
    "b": 148
  },
  "hsl": {
    "h": 270,
    "s": 55.789,
    "l": 37.255
  },
  "oklch": {
    "l": 0.41616,
    "c": 0.16514,
    "h": 302.6
  },
  "luminance": 0.06227
}

Semantic roles & 50–950 ramp

primary
#5F2A94
secondary
#8DB960
accent
#DF4994
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5F2A94

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

Preview Lab → · Contrast checker → · Palette generator →

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