#5F1985#5F1985

#5F1985 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.6% C 0.169 H 309.9°. Best body text is #FFFFFF at 10.69:1 contrast (WCAG AA passes).

Color values

HEX#5F1985
RGBrgb(95, 25, 133)
HSLhsl(279, 68%, 31%)
HSVhsv(279, 81%, 52%)
CMYKcmyk(28.6%, 81.2%, 0%, 47.8%)
CIE-LABlab(26.22, 48.41, -45.67)
CIE-LCHlch(26.22, 66.55, 316.67°)
OKLaboklab(38.59% 0.1085 -0.1296)
OKLCHoklch(38.59% 0.169 309.9)
XYZxyz(9.2997, 4.8218, 22.6266)
Luminance0.0482 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1985 #3F8519
analogous
#291985 #5F1985 #851975
triadic
#5F1985 #855F19 #19855F
tetradic
#5F1985 #852919 #3F8519 #197585
square
#5F1985 #852919 #3F8519 #197585
split-complementary
#5F1985 #758519 #198529
monochromatic
#15061E #3A0F51 #5F1985 #8423B9 #A33EDB

Accessibility & contrast

On white

10.69
#5F1985 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#5F1985 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1985
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1985#FFFFFF#000000##FFFFFF
##5F19851.0010.691.9610.69
#FFFFFF10.691.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B88
Deuteranopia (green-blind)
#003F83
Tritanopia (blue-blind)
#59344F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5f1985;
/* rgb */ color: rgb(95, 25, 133);
/* oklch */ color: oklch(38.6% 0.169 309.9);
Tailwind
colors: {
  custom: {
    50: '#915fa9',
    500: '#5f1985',
    950: '#000000',
  },
}
SCSS
$custom: #5f1985;
$custom-light: #915fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1985",
  "rgb": {
    "r": 95,
    "g": 25,
    "b": 133
  },
  "hsl": {
    "h": 278.889,
    "s": 68.354,
    "l": 30.98
  },
  "oklch": {
    "l": 0.3859,
    "c": 0.16905,
    "h": 309.9
  },
  "luminance": 0.04822
}

Semantic roles & 50–950 ramp

primary
#5F1985
secondary
#6BB941
accent
#EB3D7A
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5F1985

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

Preview Lab → · Contrast checker → · Palette generator →

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