#5F2085#5F2085

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

Color values

HEX#5F2085
RGBrgb(95, 32, 133)
HSLhsl(277, 61%, 32%)
HSVhsv(277, 76%, 52%)
CMYKcmyk(28.6%, 75.9%, 0%, 47.8%)
CIE-LABlab(27.18, 45.64, -44.10)
CIE-LCHlch(27.18, 63.47, 315.98°)
OKLaboklab(39.27% 0.102 -0.1251)
OKLCHoklch(39.27% 0.161 309.2)
XYZxyz(9.4686, 5.1596, 22.6828)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2085 #468520
analogous
#2D2085 #5F2085 #852078
triadic
#5F2085 #855F20 #20855F
tetradic
#5F2085 #852D20 #468520 #207885
square
#5F2085 #852D20 #468520 #207885
split-complementary
#5F2085 #788520 #20852D
monochromatic
#190822 #3C1454 #5F2085 #822CB6 #A14CD4

Accessibility & contrast

On white

10.34
#5F2085 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#5F2085 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2085
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2085#FFFFFF#000000##FFFFFF
##5F20851.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E88
Deuteranopia (green-blind)
#034183
Tritanopia (blue-blind)
#593851
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5f2085;
/* rgb */ color: rgb(95, 32, 133);
/* oklch */ color: oklch(39.3% 0.161 309.2);
Tailwind
colors: {
  custom: {
    50: '#9062a9',
    500: '#5f2085',
    950: '#000000',
  },
}
SCSS
$custom: #5f2085;
$custom-light: #9062a9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2085",
  "rgb": {
    "r": 95,
    "g": 32,
    "b": 133
  },
  "hsl": {
    "h": 277.426,
    "s": 61.212,
    "l": 32.353
  },
  "oklch": {
    "l": 0.39268,
    "c": 0.16139,
    "h": 309.2
  },
  "luminance": 0.05159
}

Semantic roles & 50–950 ramp

primary
#5F2085
secondary
#73B74A
accent
#E44380
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5F2085

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

Preview Lab → · Contrast checker → · Palette generator →

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