#5A1253#5A1253

#5A1253 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.6% C 0.129 H 332.4°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#5A1253
RGBrgb(90, 18, 83)
HSLhsl(306, 67%, 21%)
HSVhsv(306, 80%, 35%)
CMYKcmyk(0%, 80%, 7.8%, 64.7%)
CIE-LABlab(20.95, 39.76, -21.74)
CIE-LCHlch(20.95, 45.32, 331.33°)
OKLaboklab(33.56% 0.1144 -0.0598)
OKLCHoklch(33.56% 0.129 332.4)
XYZxyz(5.9941, 3.2313, 8.4899)
Luminance0.0323 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1253 #125A19
analogous
#3D125A #5A1253 #5A122F
triadic
#5A1253 #535A12 #12535A
tetradic
#5A1253 #5A3D12 #125A19 #122F5A
square
#5A1253 #5A3D12 #125A19 #122F5A
split-complementary
#5A1253 #2F5A12 #125A3D
monochromatic
#1A0518 #270824 #5A1253 #8D1C82 #C026B1

Accessibility & contrast

On white

12.76
#5A1253 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#5A1253 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1253
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1253#FFFFFF#000000##FFFFFF
##5A12531.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E2C55
Deuteranopia (green-blind)
#2A3651
Tritanopia (blue-blind)
#5E1A31
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5a1253;
/* rgb */ color: rgb(90, 18, 83);
/* oklch */ color: oklch(33.6% 0.129 332.4);
Tailwind
colors: {
  custom: {
    50: '#8b5983',
    500: '#5a1253',
    950: '#000000',
  },
}
SCSS
$custom: #5a1253;
$custom-light: #8b5983;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1253",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 83
  },
  "hsl": {
    "h": 305.833,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.33559,
    "c": 0.12902,
    "h": 332.4
  },
  "luminance": 0.03231
}

Semantic roles & 50–950 ramp

primary
#5A1253
secondary
#35933E
accent
#EA4F3E
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5A1253

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

Preview Lab → · Contrast checker → · Palette generator →

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