#5A4B95#5A4B95

#5A4B95 is a mid, moderate violet. Relative luminance 0.094; OKLCH L 46.4% C 0.117 H 290.4°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#5A4B95
RGBrgb(90, 75, 149)
HSLhsl(252, 33%, 44%)
HSVhsv(252, 50%, 58%)
CMYKcmyk(39.6%, 49.7%, 0%, 41.6%)
CIE-LABlab(36.70, 24.77, -38.70)
CIE-LCHlch(36.70, 45.95, 302.62°)
OKLaboklab(46.43% 0.0408 -0.1095)
OKLCHoklch(46.43% 0.117 290.4)
XYZxyz(12.1559, 9.3754, 29.5971)
Luminance0.0938 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4B95 #86954B
analogous
#4B6195 #5A4B95 #7F4B95
triadic
#5A4B95 #955A4B #4B955A
tetradic
#5A4B95 #954B61 #86954B #4B957F
square
#5A4B95 #954B61 #86954B #4B957F
split-complementary
#5A4B95 #957F4B #61954B
monochromatic
#292244 #41376C #5A4B95 #7969B4 #9D92C8

Accessibility & contrast

On white

7.30
#5A4B95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#5A4B95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A4B95
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4B95#FFFFFF#000000##FFFFFF
##5A4B951.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5898
Deuteranopia (green-blind)
#305593
Tritanopia (blue-blind)
#4A5A69
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5a4b95;
/* rgb */ color: rgb(90, 75, 149);
/* oklch */ color: oklch(46.4% 0.117 290.4);
Tailwind
colors: {
  custom: {
    50: '#8c7db4',
    500: '#5a4b95',
    950: '#000000',
  },
}
SCSS
$custom: #5a4b95;
$custom-light: #8c7db4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4b95",
  "rgb": {
    "r": 90,
    "g": 75,
    "b": 149
  },
  "hsl": {
    "h": 252.162,
    "s": 33.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.4643,
    "c": 0.11681,
    "h": 290.4
  },
  "luminance": 0.09376
}

Semantic roles & 50–950 ramp

primary
#5A4B95
secondary
#ABB487
accent
#C95FB4
background
#F8F7FB
surface
#F0EEF6
border
#CBC9D0
text
#0C0911
muted
#7D7B80

Preview Lab

Preview with #5A4B95

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

Preview Lab → · Contrast checker → · Palette generator →

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