#5F1983#5F1983

#5F1983 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.4% C 0.167 H 310.7°. Best body text is #FFFFFF at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#5F1983
RGBrgb(95, 25, 131)
HSLhsl(280, 68%, 31%)
HSVhsv(280, 81%, 51%)
CMYKcmyk(27.5%, 80.9%, 0%, 48.6%)
CIE-LABlab(26.06, 47.97, -44.67)
CIE-LCHlch(26.06, 65.55, 317.04°)
OKLaboklab(38.43% 0.109 -0.1267)
OKLCHoklch(38.43% 0.167 310.7)
XYZxyz(9.1629, 4.7671, 21.9058)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1983 #3D8319
analogous
#2A1983 #5F1983 #831972
triadic
#5F1983 #835F19 #19835F
tetradic
#5F1983 #832A19 #3D8319 #197283
square
#5F1983 #832A19 #3D8319 #197283
split-complementary
#5F1983 #728319 #19832A
monochromatic
#14051C #3A0F50 #5F1983 #8423B6 #A43DDA

Accessibility & contrast

On white

10.75
#5F1983 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5F1983 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1983
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1983#FFFFFF#000000##FFFFFF
##5F19831.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B86
Deuteranopia (green-blind)
#003F81
Tritanopia (blue-blind)
#5A334E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5f1983;
/* rgb */ color: rgb(95, 25, 131);
/* oklch */ color: oklch(38.4% 0.167 310.7);
Tailwind
colors: {
  custom: {
    50: '#915fa8',
    500: '#5f1983',
    950: '#000000',
  },
}
SCSS
$custom: #5f1983;
$custom-light: #915fa8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1983",
  "rgb": {
    "r": 95,
    "g": 25,
    "b": 131
  },
  "hsl": {
    "h": 279.623,
    "s": 67.949,
    "l": 30.588
  },
  "oklch": {
    "l": 0.38427,
    "c": 0.16712,
    "h": 310.7
  },
  "luminance": 0.04767
}

Semantic roles & 50–950 ramp

primary
#5F1983
secondary
#69B741
accent
#EB3D78
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5F1983

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

Preview Lab → · Contrast checker → · Palette generator →

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