#5A289C#5A289C

#5A289C is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.4% C 0.176 H 297.8°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#5A289C
RGBrgb(90, 40, 156)
HSLhsl(266, 59%, 38%)
HSVhsv(266, 74%, 61%)
CMYKcmyk(42.3%, 74.4%, 0%, 38.8%)
CIE-LABlab(29.64, 46.74, -54.34)
CIE-LCHlch(29.64, 71.68, 310.70°)
OKLaboklab(41.44% 0.082 -0.1554)
OKLCHoklch(41.44% 0.176 297.8)
XYZxyz(10.9744, 6.0914, 32.0436)
Luminance0.0609 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A289C #6A9C28
analogous
#28309C #5A289C #94289C
triadic
#5A289C #9C5A28 #289C5A
tetradic
#5A289C #9C2830 #6A9C28 #289C94
square
#5A289C #9C2830 #6A9C28 #289C94
split-complementary
#5A289C #9C9428 #309C28
monochromatic
#220F3B #3E1C6B #5A289C #7636CB #9767D8

Accessibility & contrast

On white

9.47
#5A289C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#5A289C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A289C
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A289C#FFFFFF#000000##FFFFFF
##5A289C1.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469F
Deuteranopia (green-blind)
#00459A
Tritanopia (blue-blind)
#494660
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5a289c;
/* rgb */ color: rgb(90, 40, 156);
/* oklch */ color: oklch(41.4% 0.176 297.8);
Tailwind
colors: {
  custom: {
    50: '#8f67ba',
    500: '#5a289c',
    950: '#000000',
  },
}
SCSS
$custom: #5a289c;
$custom-light: #8f67ba;
$custom-dark: #000000;
JSON
{
  "hex": "#5a289c",
  "rgb": {
    "r": 90,
    "g": 40,
    "b": 156
  },
  "hsl": {
    "h": 265.862,
    "s": 59.184,
    "l": 38.431
  },
  "oklch": {
    "l": 0.41439,
    "c": 0.17568,
    "h": 297.8
  },
  "luminance": 0.06092
}

Semantic roles & 50–950 ramp

primary
#5A289C
secondary
#96BE62
accent
#E2459F
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A289C

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

Preview Lab → · Contrast checker → · Palette generator →

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