#5F2A8F#5F2A8F

#5F2A8F is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.2% C 0.160 H 304.2°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#5F2A8F
RGBrgb(95, 42, 143)
HSLhsl(271, 55%, 36%)
HSVhsv(271, 71%, 56%)
CMYKcmyk(33.6%, 70.6%, 0%, 43.9%)
CIE-LABlab(29.59, 43.42, -46.42)
CIE-LCHlch(29.59, 63.56, 313.09°)
OKLaboklab(41.22% 0.0897 -0.1319)
OKLCHoklch(41.22% 0.16 304.2)
XYZxyz(10.5041, 6.0720, 26.5999)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2A8F #5A8F2A
analogous
#2C2A8F #5F2A8F #8F2A8D
triadic
#5F2A8F #8F5F2A #2A8F5F
tetradic
#5F2A8F #8F2C2A #5A8F2A #2A8D8F
square
#5F2A8F #8F2C2A #5A8F2A #2A8D8F
split-complementary
#5F2A8F #8D8F2A #2A8F2C
monochromatic
#200E30 #401C60 #5F2A8F #7E38BE #9C62D1

Accessibility & contrast

On white

9.48
#5F2A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5F2A8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2A8F
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2A8F#FFFFFF#000000##FFFFFF
##5F2A8F1.009.482.219.48
#FFFFFF9.481.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004492
Deuteranopia (green-blind)
#00468D
Tritanopia (blue-blind)
#564159
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5f2a8f;
/* rgb */ color: rgb(95, 42, 143);
/* oklch */ color: oklch(41.2% 0.160 304.2);
Tailwind
colors: {
  custom: {
    50: '#9168b0',
    500: '#5f2a8f',
    950: '#000000',
  },
}
SCSS
$custom: #5f2a8f;
$custom-light: #9168b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2a8f",
  "rgb": {
    "r": 95,
    "g": 42,
    "b": 143
  },
  "hsl": {
    "h": 271.485,
    "s": 54.595,
    "l": 36.275
  },
  "oklch": {
    "l": 0.41221,
    "c": 0.15954,
    "h": 304.2
  },
  "luminance": 0.06072
}

Semantic roles & 50–950 ramp

primary
#5F2A8F
secondary
#88B75E
accent
#DE4A90
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5F2A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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