#5F1283#5F1283

#5F1283 is a dark, vivid purple. Relative luminance 0.045; OKLCH L 37.9% C 0.173 H 311.3°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#5F1283
RGBrgb(95, 18, 131)
HSLhsl(281, 76%, 29%)
HSVhsv(281, 86%, 51%)
CMYKcmyk(27.5%, 86.3%, 0%, 48.6%)
CIE-LABlab(25.27, 50.26, -45.95)
CIE-LCHlch(25.27, 68.10, 317.56°)
OKLaboklab(37.88% 0.1144 -0.1304)
OKLCHoklch(37.88% 0.173 311.3)
XYZxyz(9.0316, 4.5044, 21.8620)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1283 #368312
analogous
#271283 #5F1283 #83126F
triadic
#5F1283 #835F12 #12835F
tetradic
#5F1283 #832712 #368312 #126F83
square
#5F1283 #832712 #368312 #126F83
split-complementary
#5F1283 #6F8312 #128327
monochromatic
#14041B #380B4D #5F1283 #8619B9 #A92DE2

Accessibility & contrast

On white

11.05
#5F1283 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#5F1283 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1283
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1283#FFFFFF#000000##FFFFFF
##5F12831.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003986
Deuteranopia (green-blind)
#003D81
Tritanopia (blue-blind)
#5A314D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5f1283;
/* rgb */ color: rgb(95, 18, 131);
/* oklch */ color: oklch(37.9% 0.173 311.3);
Tailwind
colors: {
  custom: {
    50: '#915ca8',
    500: '#5f1283',
    950: '#000000',
  },
}
SCSS
$custom: #5f1283;
$custom-light: #915ca8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1283",
  "rgb": {
    "r": 95,
    "g": 18,
    "b": 131
  },
  "hsl": {
    "h": 280.885,
    "s": 75.839,
    "l": 29.216
  },
  "oklch": {
    "l": 0.37877,
    "c": 0.17348,
    "h": 311.3
  },
  "luminance": 0.04504
}

Semantic roles & 50–950 ramp

primary
#5F1283
secondary
#61B838
accent
#F23572
background
#F9F5FA
surface
#F2E9F4
border
#CCC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5F1283

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

Preview Lab → · Contrast checker → · Palette generator →

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