#5A128F#5A128F

#5A128F is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.2% C 0.183 H 304.3°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#5A128F
RGBrgb(90, 18, 143)
HSLhsl(275, 78%, 32%)
HSVhsv(275, 87%, 56%)
CMYKcmyk(37.1%, 87.4%, 0%, 43.9%)
CIE-LABlab(25.53, 52.12, -53.06)
CIE-LCHlch(25.53, 74.38, 314.49°)
OKLaboklab(38.22% 0.1033 -0.1515)
OKLCHoklch(38.22% 0.183 304.3)
XYZxyz(9.3895, 4.5895, 26.3725)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A128F #478F12
analogous
#1C128F #5A128F #8F1286
triadic
#5A128F #8F5A12 #128F5A
tetradic
#5A128F #8F1C12 #478F12 #12868F
square
#5A128F #8F1C12 #478F12 #12868F
split-complementary
#5A128F #868F12 #128F1C
monochromatic
#160422 #380B59 #5A128F #7C19C5 #9B36E6

Accessibility & contrast

On white

10.95
#5A128F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#5A128F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A128F
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A128F#FFFFFF#000000##FFFFFF
##5A128F1.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#003C8D
Tritanopia (blue-blind)
#4F3754
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5a128f;
/* rgb */ color: rgb(90, 18, 143);
/* oklch */ color: oklch(38.2% 0.183 304.3);
Tailwind
colors: {
  custom: {
    50: '#8f5cb1',
    500: '#5a128f',
    950: '#000000',
  },
}
SCSS
$custom: #5a128f;
$custom-light: #8f5cb1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a128f",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 143
  },
  "hsl": {
    "h": 274.56,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38218,
    "c": 0.18334,
    "h": 304.3
  },
  "luminance": 0.04589
}

Semantic roles & 50–950 ramp

primary
#5A128F
secondary
#74C33A
accent
#F43485
background
#F9F5FB
surface
#F1E9F6
border
#CBC5D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5A128F

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

Preview Lab → · Contrast checker → · Palette generator →

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