#5A289F#5A289F

#5A289F is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.7% C 0.179 H 297.0°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#5A289F
RGBrgb(90, 40, 159)
HSLhsl(265, 60%, 39%)
HSVhsv(265, 75%, 62%)
CMYKcmyk(43.4%, 74.8%, 0%, 37.6%)
CIE-LABlab(29.90, 47.53, -55.75)
CIE-LCHlch(29.90, 73.26, 310.45°)
OKLaboklab(41.7% 0.0813 -0.1595)
OKLCHoklch(41.7% 0.179 297)
XYZxyz(11.2316, 6.1942, 33.3980)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A289F #6D9F28
analogous
#28329F #5A289F #96289F
triadic
#5A289F #9F5A28 #289F5A
tetradic
#5A289F #9F2832 #6D9F28 #289F96
square
#5A289F #9F2832 #6D9F28 #289F96
split-complementary
#5A289F #9F9628 #329F28
monochromatic
#230F3D #3E1C6E #5A289F #7637CD #9868D9

Accessibility & contrast

On white

9.38
#5A289F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5A289F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A289F
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A289F#FFFFFF#000000##FFFFFF
##5A289F1.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A2
Deuteranopia (green-blind)
#00459D
Tritanopia (blue-blind)
#484761
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5a289f;
/* rgb */ color: rgb(90, 40, 159);
/* oklch */ color: oklch(41.7% 0.179 297.0);
Tailwind
colors: {
  custom: {
    50: '#8f67bc',
    500: '#5a289f',
    950: '#000000',
  },
}
SCSS
$custom: #5a289f;
$custom-light: #8f67bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a289f",
  "rgb": {
    "r": 90,
    "g": 40,
    "b": 159
  },
  "hsl": {
    "h": 265.21,
    "s": 59.799,
    "l": 39.02
  },
  "oklch": {
    "l": 0.41699,
    "c": 0.17903,
    "h": 297
  },
  "luminance": 0.06194
}

Semantic roles & 50–950 ramp

primary
#5A289F
secondary
#99BF64
accent
#E345A1
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A289F

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

Preview Lab → · Contrast checker → · Palette generator →

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