#5A3092#5A3092

#5A3092 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.7% C 0.154 H 299.3°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#5A3092
RGBrgb(90, 48, 146)
HSLhsl(266, 51%, 38%)
HSVhsv(266, 67%, 57%)
CMYKcmyk(38.4%, 67.1%, 0%, 42.7%)
CIE-LABlab(30.31, 40.00, -47.13)
CIE-LCHlch(30.31, 61.82, 310.32°)
OKLaboklab(41.67% 0.0753 -0.1342)
OKLCHoklch(41.67% 0.154 299.3)
XYZxyz(10.4604, 6.3628, 27.8656)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3092 #689230
analogous
#303792 #5A3092 #8B3092
triadic
#5A3092 #925A30 #30925A
tetradic
#5A3092 #923037 #689230 #30928B
square
#5A3092 #923037 #689230 #30928B
split-complementary
#5A3092 #928B30 #379230
monochromatic
#211236 #3E2164 #5A3092 #763FC0 #976DCF

Accessibility & contrast

On white

9.24
#5A3092 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#5A3092 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3092
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3092#FFFFFF#000000##FFFFFF
##5A30921.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004795
Deuteranopia (green-blind)
#004790
Tritanopia (blue-blind)
#4D465D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5a3092;
/* rgb */ color: rgb(90, 48, 146);
/* oklch */ color: oklch(41.7% 0.154 299.3);
Tailwind
colors: {
  custom: {
    50: '#8d6bb3',
    500: '#5a3092',
    950: '#000000',
  },
}
SCSS
$custom: #5a3092;
$custom-light: #8d6bb3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3092",
  "rgb": {
    "r": 90,
    "g": 48,
    "b": 146
  },
  "hsl": {
    "h": 265.714,
    "s": 50.515,
    "l": 38.039
  },
  "oklch": {
    "l": 0.41665,
    "c": 0.15391,
    "h": 299.3
  },
  "luminance": 0.06363
}

Semantic roles & 50–950 ramp

primary
#5A3092
secondary
#95B767
accent
#DA4E9E
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5A3092

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

Preview Lab → · Contrast checker → · Palette generator →

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