#5F1883#5F1883

#5F1883 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.3% C 0.168 H 310.8°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#5F1883
RGBrgb(95, 24, 131)
HSLhsl(280, 69%, 30%)
HSVhsv(280, 82%, 51%)
CMYKcmyk(27.5%, 81.7%, 0%, 48.6%)
CIE-LABlab(25.94, 48.33, -44.87)
CIE-LCHlch(25.94, 65.95, 317.12°)
OKLaboklab(38.34% 0.1099 -0.1273)
OKLCHoklch(38.34% 0.168 310.8)
XYZxyz(9.1419, 4.7251, 21.8988)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1883 #3C8318
analogous
#291883 #5F1883 #831871
triadic
#5F1883 #835F18 #18835F
tetradic
#5F1883 #832918 #3C8318 #187183
square
#5F1883 #832918 #3C8318 #187183
split-complementary
#5F1883 #718318 #188329
monochromatic
#14051C #390F4F #5F1883 #8521B7 #A53ADB

Accessibility & contrast

On white

10.80
#5F1883 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1883
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1883#FFFFFF#000000##FFFFFF
##5F18831.0010.801.9510.80
#FFFFFF10.801.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f1883;
/* rgb */ color: rgb(95, 24, 131);
/* oklch */ color: oklch(38.3% 0.168 310.8);
Tailwind
colors: {
  custom: {
    50: '#915fa8',
    500: '#5f1883',
    950: '#000000',
  },
}
SCSS
$custom: #5f1883;
$custom-light: #915fa8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1883",
  "rgb": {
    "r": 95,
    "g": 24,
    "b": 131
  },
  "hsl": {
    "h": 279.813,
    "s": 69.032,
    "l": 30.392
  },
  "oklch": {
    "l": 0.3834,
    "c": 0.16812,
    "h": 310.8
  },
  "luminance": 0.04725
}

Semantic roles & 50–950 ramp

primary
#5F1883
secondary
#68B740
accent
#EC3C77
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5F1883

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

Preview Lab → · Contrast checker → · Palette generator →

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