#5A1263#5A1263

#5A1263 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.6% C 0.143 H 323.0°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#5A1263
RGBrgb(90, 18, 99)
HSLhsl(293, 69%, 23%)
HSVhsv(293, 82%, 39%)
CMYKcmyk(9.1%, 81.8%, 0%, 61.2%)
CIE-LABlab(21.97, 42.72, -30.76)
CIE-LCHlch(21.97, 52.64, 324.25°)
OKLaboklab(34.62% 0.114 -0.086)
OKLCHoklch(34.62% 0.143 323)
XYZxyz(6.6847, 3.5075, 12.1269)
Luminance0.0351 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1263 #1B6312
analogous
#311263 #5A1263 #631243
triadic
#5A1263 #635A12 #12635A
tetradic
#5A1263 #633112 #1B6312 #124363
square
#5A1263 #633112 #1B6312 #124363
split-complementary
#5A1263 #436312 #126331
monochromatic
#18051A #2B092F #5A1263 #891B97 #B825CB

Accessibility & contrast

On white

12.34
#5A1263 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#5A1263 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1263
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1263#FFFFFF#000000##FFFFFF
##5A12631.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F65
Deuteranopia (green-blind)
#203761
Tritanopia (blue-blind)
#5B223A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5a1263;
/* rgb */ color: rgb(90, 18, 99);
/* oklch */ color: oklch(34.6% 0.143 323.0);
Tailwind
colors: {
  custom: {
    50: '#8c5a90',
    500: '#5a1263',
    950: '#000000',
  },
}
SCSS
$custom: #5a1263;
$custom-light: #8c5a90;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1263",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 99
  },
  "hsl": {
    "h": 293.333,
    "s": 69.231,
    "l": 22.941
  },
  "oklch": {
    "l": 0.34619,
    "c": 0.14275,
    "h": 323
  },
  "luminance": 0.03507
}

Semantic roles & 50–950 ramp

primary
#5A1263
secondary
#419B36
accent
#EC3C4F
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5A1263

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

Preview Lab → · Contrast checker → · Palette generator →

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