#5A4792#5A4792

#5A4792 is a mid, moderate violet. Relative luminance 0.088; OKLCH L 45.5% C 0.119 H 292.7°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#5A4792
RGBrgb(90, 71, 146)
HSLhsl(255, 35%, 43%)
HSVhsv(255, 51%, 57%)
CMYKcmyk(38.4%, 51.4%, 0%, 42.7%)
CIE-LABlab(35.51, 26.40, -38.77)
CIE-LCHlch(35.51, 46.91, 304.25°)
OKLaboklab(45.48% 0.0459 -0.1097)
OKLCHoklch(45.48% 0.119 292.7)
XYZxyz(11.6566, 8.7552, 28.2643)
Luminance0.0876 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4792 #7F9247
analogous
#475A92 #5A4792 #7F4792
triadic
#5A4792 #925A47 #47925A
tetradic
#5A4792 #92475A #7F9247 #47927F
square
#5A4792 #92475A #7F9247 #47927F
split-complementary
#5A4792 #927F47 #5A9247
monochromatic
#271F40 #413369 #5A4792 #7763B3 #9B8CC7

Accessibility & contrast

On white

7.63
#5A4792 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#5A4792 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A4792
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4792#FFFFFF#000000##FFFFFF
##5A47921.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A5595
Deuteranopia (green-blind)
#2D5290
Tritanopia (blue-blind)
#4C5665
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5a4792;
/* rgb */ color: rgb(90, 71, 146);
/* oklch */ color: oklch(45.5% 0.119 292.7);
Tailwind
colors: {
  custom: {
    50: '#8c7ab2',
    500: '#5a4792',
    950: '#000000',
  },
}
SCSS
$custom: #5a4792;
$custom-light: #8c7ab2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4792",
  "rgb": {
    "r": 90,
    "g": 71,
    "b": 146
  },
  "hsl": {
    "h": 255.2,
    "s": 34.562,
    "l": 42.549
  },
  "oklch": {
    "l": 0.45482,
    "c": 0.11891,
    "h": 292.7
  },
  "luminance": 0.08755
}

Semantic roles & 50–950 ramp

primary
#5A4792
secondary
#A6B382
accent
#CB5DAF
background
#F8F7FB
surface
#F0EDF6
border
#CBC8D0
text
#0C0911
muted
#7D7B80

Preview Lab

Preview with #5A4792

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

Preview Lab → · Contrast checker → · Palette generator →

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