#5F1380#5F1380

#5F1380 is a dark, vivid purple. Relative luminance 0.045; OKLCH L 37.7% C 0.170 H 312.4°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#5F1380
RGBrgb(95, 19, 128)
HSLhsl(282, 74%, 29%)
HSVhsv(282, 85%, 50%)
CMYKcmyk(25.8%, 85.2%, 0%, 49.8%)
CIE-LABlab(25.13, 49.32, -44.30)
CIE-LCHlch(25.13, 66.29, 318.07°)
OKLaboklab(37.7% 0.1145 -0.1255)
OKLCHoklch(37.7% 0.17 312.4)
XYZxyz(8.8477, 4.4574, 20.8122)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1380 #348013
analogous
#291380 #5F1380 #80136B
triadic
#5F1380 #805F13 #13805F
tetradic
#5F1380 #802913 #348013 #136B80
square
#5F1380 #802913 #348013 #136B80
split-complementary
#5F1380 #6B8013 #138029
monochromatic
#14041B #370B4B #5F1380 #871BB5 #AA2DE0

Accessibility & contrast

On white

11.10
#5F1380 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#5F1380 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1380
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1380#FFFFFF#000000##FFFFFF
##5F13801.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003883
Deuteranopia (green-blind)
#003D7E
Tritanopia (blue-blind)
#5B2F4B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5f1380;
/* rgb */ color: rgb(95, 19, 128);
/* oklch */ color: oklch(37.7% 0.170 312.4);
Tailwind
colors: {
  custom: {
    50: '#915ca6',
    500: '#5f1380',
    950: '#000000',
  },
}
SCSS
$custom: #5f1380;
$custom-light: #915ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1380",
  "rgb": {
    "r": 95,
    "g": 19,
    "b": 128
  },
  "hsl": {
    "h": 281.835,
    "s": 74.15,
    "l": 28.824
  },
  "oklch": {
    "l": 0.377,
    "c": 0.16992,
    "h": 312.4
  },
  "luminance": 0.04457
}

Semantic roles & 50–950 ramp

primary
#5F1380
secondary
#5FB539
accent
#F1376F
background
#F9F5FA
surface
#F2E9F4
border
#CCC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5F1380

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

Preview Lab → · Contrast checker → · Palette generator →

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