#5F2A82#5F2A82

#5F2A82 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.2% C 0.145 H 309.0°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#5F2A82
RGBrgb(95, 42, 130)
HSLhsl(276, 51%, 34%)
HSVhsv(276, 68%, 51%)
CMYKcmyk(26.9%, 67.7%, 0%, 49%)
CIE-LABlab(28.64, 40.22, -39.87)
CIE-LCHlch(28.64, 56.63, 315.25°)
OKLaboklab(40.24% 0.0912 -0.1127)
OKLCHoklch(40.24% 0.145 309)
XYZxyz(9.5757, 5.7007, 21.7107)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2A82 #4D822A
analogous
#332A82 #5F2A82 #822A79
triadic
#5F2A82 #825F2A #2A825F
tetradic
#5F2A82 #82332A #4D822A #2A7982
square
#5F2A82 #82332A #4D822A #2A7982
split-complementary
#5F2A82 #79822A #2A8233
monochromatic
#1B0C25 #3D1B54 #5F2A82 #8139B0 #9E5CCA

Accessibility & contrast

On white

9.81
#5F2A82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#5F2A82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2A82
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2A82#FFFFFF#000000##FFFFFF
##5F2A821.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004185
Deuteranopia (green-blind)
#1B4480
Tritanopia (blue-blind)
#5A3C52
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5f2a82;
/* rgb */ color: rgb(95, 42, 130);
/* oklch */ color: oklch(40.2% 0.145 309.0);
Tailwind
colors: {
  custom: {
    50: '#9067a7',
    500: '#5f2a82',
    950: '#000000',
  },
}
SCSS
$custom: #5f2a82;
$custom-light: #9067a7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2a82",
  "rgb": {
    "r": 95,
    "g": 42,
    "b": 130
  },
  "hsl": {
    "h": 276.136,
    "s": 51.163,
    "l": 33.725
  },
  "oklch": {
    "l": 0.4024,
    "c": 0.14496,
    "h": 309
  },
  "luminance": 0.05701
}

Semantic roles & 50–950 ramp

primary
#5F2A82
secondary
#7BB058
accent
#DB4D85
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D060F
muted
#7E7A7F

Preview Lab

Preview with #5F2A82

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

Preview Lab → · Contrast checker → · Palette generator →

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