#5A289B#5A289B

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

Color values

HEX#5A289B
RGBrgb(90, 40, 155)
HSLhsl(266, 59%, 38%)
HSVhsv(266, 74%, 61%)
CMYKcmyk(41.9%, 74.2%, 0%, 39.2%)
CIE-LABlab(29.56, 46.48, -53.87)
CIE-LCHlch(29.56, 71.15, 310.79°)
OKLaboklab(41.35% 0.0822 -0.154)
OKLCHoklch(41.35% 0.175 298.1)
XYZxyz(10.8901, 6.0576, 31.5995)
Luminance0.0606 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A289B #699B28
analogous
#282F9B #5A289B #93289B
triadic
#5A289B #9B5A28 #289B5A
tetradic
#5A289B #9B282F #699B28 #289B93
square
#5A289B #9B282F #699B28 #289B93
split-complementary
#5A289B #9B9328 #2F9B28
monochromatic
#220F3A #3E1B6A #5A289B #7635CB #9766D7

Accessibility & contrast

On white

9.50
#5A289B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5A289B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A289B
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A289B#FFFFFF#000000##FFFFFF
##5A289B1.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469E
Deuteranopia (green-blind)
#004499
Tritanopia (blue-blind)
#4A455F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5a289b;
/* rgb */ color: rgb(90, 40, 155);
/* oklch */ color: oklch(41.4% 0.175 298.1);
Tailwind
colors: {
  custom: {
    50: '#8f67b9',
    500: '#5a289b',
    950: '#000000',
  },
}
SCSS
$custom: #5a289b;
$custom-light: #8f67b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a289b",
  "rgb": {
    "r": 90,
    "g": 40,
    "b": 155
  },
  "hsl": {
    "h": 266.087,
    "s": 58.974,
    "l": 38.235
  },
  "oklch": {
    "l": 0.41353,
    "c": 0.17457,
    "h": 298.1
  },
  "luminance": 0.06058
}

Semantic roles & 50–950 ramp

primary
#5A289B
secondary
#95BD61
accent
#E2469E
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A289B

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

Preview Lab → · Contrast checker → · Palette generator →

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