#5F1180#5F1180

#5F1180 is a dark, vivid purple. Relative luminance 0.044; OKLCH L 37.6% C 0.172 H 312.5°. Best body text is #FFFFFF at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#5F1180
RGBrgb(95, 17, 128)
HSLhsl(282, 77%, 28%)
HSVhsv(282, 87%, 50%)
CMYKcmyk(25.8%, 86.7%, 0%, 49.8%)
CIE-LABlab(24.93, 49.91, -44.62)
CIE-LCHlch(24.93, 66.95, 318.20°)
OKLaboklab(37.56% 0.1159 -0.1265)
OKLCHoklch(37.56% 0.172 312.5)
XYZxyz(8.8153, 4.3926, 20.8014)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1180 #328011
analogous
#271180 #5F1180 #801169
triadic
#5F1180 #805F11 #11805F
tetradic
#5F1180 #802711 #328011 #116980
square
#5F1180 #802711 #328011 #116980
split-complementary
#5F1180 #698011 #118027
monochromatic
#14041B #370A4A #5F1180 #8718B6 #AB29E3

Accessibility & contrast

On white

11.18
#5F1180 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#5F1180 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1180
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1180#FFFFFF#000000##FFFFFF
##5F11801.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f1180;
/* rgb */ color: rgb(95, 17, 128);
/* oklch */ color: oklch(37.6% 0.172 312.5);
Tailwind
colors: {
  custom: {
    50: '#915ca6',
    500: '#5f1180',
    950: '#000000',
  },
}
SCSS
$custom: #5f1180;
$custom-light: #915ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1180",
  "rgb": {
    "r": 95,
    "g": 17,
    "b": 128
  },
  "hsl": {
    "h": 282.162,
    "s": 76.552,
    "l": 28.431
  },
  "oklch": {
    "l": 0.3756,
    "c": 0.17156,
    "h": 312.5
  },
  "luminance": 0.04392
}

Semantic roles & 50–950 ramp

primary
#5F1180
secondary
#5DB637
accent
#F3356D
background
#F9F5FA
surface
#F2E9F4
border
#CCC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5F1180

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

Preview Lab → · Contrast checker → · Palette generator →

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