#5F2082#5F2082

#5F2082 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.0% C 0.158 H 310.4°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#5F2082
RGBrgb(95, 32, 130)
HSLhsl(279, 60%, 32%)
HSVhsv(279, 75%, 51%)
CMYKcmyk(26.9%, 75.4%, 0%, 49%)
CIE-LABlab(26.96, 44.95, -42.60)
CIE-LCHlch(26.96, 61.93, 316.54°)
OKLaboklab(39.03% 0.1026 -0.1206)
OKLCHoklch(39.03% 0.158 310.4)
XYZxyz(9.2643, 5.0778, 21.6069)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2082 #438220
analogous
#2E2082 #5F2082 #822074
triadic
#5F2082 #825F20 #20825F
tetradic
#5F2082 #822E20 #438220 #207482
square
#5F2082 #822E20 #438220 #207482
split-complementary
#5F2082 #748220 #20822E
monochromatic
#170820 #3B1451 #5F2082 #832CB3 #A24AD2

Accessibility & contrast

On white

10.42
#5F2082 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#5F2082 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2082
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2082#FFFFFF#000000##FFFFFF
##5F20821.0010.422.0210.42
#FFFFFF10.421.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D85
Deuteranopia (green-blind)
#0C4180
Tritanopia (blue-blind)
#5A364F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5f2082;
/* rgb */ color: rgb(95, 32, 130);
/* oklch */ color: oklch(39.0% 0.158 310.4);
Tailwind
colors: {
  custom: {
    50: '#9062a7',
    500: '#5f2082',
    950: '#000000',
  },
}
SCSS
$custom: #5f2082;
$custom-light: #9062a7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2082",
  "rgb": {
    "r": 95,
    "g": 32,
    "b": 130
  },
  "hsl": {
    "h": 278.571,
    "s": 60.494,
    "l": 31.765
  },
  "oklch": {
    "l": 0.39033,
    "c": 0.15832,
    "h": 310.4
  },
  "luminance": 0.05078
}

Semantic roles & 50–950 ramp

primary
#5F2082
secondary
#70B549
accent
#E4447D
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D050F
muted
#7E7A7F

Preview Lab

Preview with #5F2082

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

Preview Lab → · Contrast checker → · Palette generator →

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