#5A1250#5A1250

#5A1250 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.4% C 0.127 H 334.4°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#5A1250
RGBrgb(90, 18, 80)
HSLhsl(308, 67%, 21%)
HSVhsv(308, 80%, 35%)
CMYKcmyk(0%, 80%, 11.1%, 64.7%)
CIE-LABlab(20.77, 39.25, -19.99)
CIE-LCHlch(20.77, 44.05, 333.01°)
OKLaboklab(33.38% 0.1142 -0.0547)
OKLCHoklch(33.38% 0.127 334.4)
XYZxyz(5.8808, 3.1860, 7.8931)
Luminance0.0319 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1250 #125A1C
analogous
#40125A #5A1250 #5A122C
triadic
#5A1250 #505A12 #12505A
tetradic
#5A1250 #5A4012 #125A1C #122C5A
square
#5A1250 #5A4012 #125A1C #122C5A
split-complementary
#5A1250 #2C5A12 #125A40
monochromatic
#1A0517 #270823 #5A1250 #8D1C7D #C026AB

Accessibility & contrast

On white

12.83
#5A1250 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#5A1250 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1250
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1250#FFFFFF#000000##FFFFFF
##5A12501.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112B52
Deuteranopia (green-blind)
#2B364E
Tritanopia (blue-blind)
#5F1930
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5a1250;
/* rgb */ color: rgb(90, 18, 80);
/* oklch */ color: oklch(33.4% 0.127 334.4);
Tailwind
colors: {
  custom: {
    50: '#8b5981',
    500: '#5a1250',
    950: '#000000',
  },
}
SCSS
$custom: #5a1250;
$custom-light: #8b5981;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1250",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 80
  },
  "hsl": {
    "h": 308.333,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.33378,
    "c": 0.1266,
    "h": 334.4
  },
  "luminance": 0.03185
}

Semantic roles & 50–950 ramp

primary
#5A1250
secondary
#359342
accent
#EA563E
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5A1250

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

Preview Lab → · Contrast checker → · Palette generator →

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