#5F2282#5F2282

#5F2282 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.3% C 0.156 H 310.1°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#5F2282
RGBrgb(95, 34, 130)
HSLhsl(278, 59%, 32%)
HSVhsv(278, 74%, 51%)
CMYKcmyk(26.9%, 73.8%, 0%, 49%)
CIE-LABlab(27.27, 44.07, -42.09)
CIE-LCHlch(27.27, 60.94, 316.32°)
OKLaboklab(39.25% 0.1004 -0.1192)
OKLCHoklch(39.25% 0.156 310.1)
XYZxyz(9.3198, 5.1889, 21.6254)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2282 #458222
analogous
#2F2282 #5F2282 #822275
triadic
#5F2282 #825F22 #22825F
tetradic
#5F2282 #822F22 #458222 #227582
square
#5F2282 #822F22 #458222 #227582
split-complementary
#5F2282 #758222 #22822F
monochromatic
#180921 #3C1551 #5F2282 #822FB3 #A14ED1

Accessibility & contrast

On white

10.31
#5F2282 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#5F2282 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2282
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2282#FFFFFF#000000##FFFFFF
##5F22821.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E85
Deuteranopia (green-blind)
#0F4180
Tritanopia (blue-blind)
#5A3750
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5f2282;
/* rgb */ color: rgb(95, 34, 130);
/* oklch */ color: oklch(39.3% 0.156 310.1);
Tailwind
colors: {
  custom: {
    50: '#9063a7',
    500: '#5f2282',
    950: '#000000',
  },
}
SCSS
$custom: #5f2282;
$custom-light: #9063a7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2282",
  "rgb": {
    "r": 95,
    "g": 34,
    "b": 130
  },
  "hsl": {
    "h": 278.125,
    "s": 58.537,
    "l": 32.157
  },
  "oklch": {
    "l": 0.39254,
    "c": 0.15584,
    "h": 310.1
  },
  "luminance": 0.05189
}

Semantic roles & 50–950 ramp

primary
#5F2282
secondary
#72B44C
accent
#E2467F
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D060F
muted
#7E7A7F

Preview Lab

Preview with #5F2282

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

Preview Lab → · Contrast checker → · Palette generator →

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