#5A289D#5A289D

#5A289D is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.5% C 0.177 H 297.5°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#5A289D
RGBrgb(90, 40, 157)
HSLhsl(266, 59%, 39%)
HSVhsv(266, 75%, 62%)
CMYKcmyk(42.7%, 74.5%, 0%, 38.4%)
CIE-LABlab(29.73, 47.00, -54.81)
CIE-LCHlch(29.73, 72.20, 310.62°)
OKLaboklab(41.53% 0.0818 -0.1568)
OKLCHoklch(41.53% 0.177 297.5)
XYZxyz(11.0595, 6.1254, 32.4914)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A289D #6B9D28
analogous
#28309D #5A289D #94289D
triadic
#5A289D #9D5A28 #289D5A
tetradic
#5A289D #9D2830 #6B9D28 #289D94
square
#5A289D #9D2830 #6B9D28 #289D94
split-complementary
#5A289D #9D9428 #309D28
monochromatic
#220F3B #3E1C6C #5A289D #7636CC #9767D8

Accessibility & contrast

On white

9.44
#5A289D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#5A289D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A289D
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A289D#FFFFFF#000000##FFFFFF
##5A289D1.009.442.239.44
#FFFFFF9.441.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A0
Deuteranopia (green-blind)
#00459B
Tritanopia (blue-blind)
#494660
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5a289d;
/* rgb */ color: rgb(90, 40, 157);
/* oklch */ color: oklch(41.5% 0.177 297.5);
Tailwind
colors: {
  custom: {
    50: '#8f67bb',
    500: '#5a289d',
    950: '#000000',
  },
}
SCSS
$custom: #5a289d;
$custom-light: #8f67bb;
$custom-dark: #000000;
JSON
{
  "hex": "#5a289d",
  "rgb": {
    "r": 90,
    "g": 40,
    "b": 157
  },
  "hsl": {
    "h": 265.641,
    "s": 59.391,
    "l": 38.627
  },
  "oklch": {
    "l": 0.41525,
    "c": 0.17681,
    "h": 297.5
  },
  "luminance": 0.06126
}

Semantic roles & 50–950 ramp

primary
#5A289D
secondary
#97BE62
accent
#E3459F
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A289D

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

Preview Lab → · Contrast checker → · Palette generator →

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