#5A3095#5A3095

#5A3095 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 41.9% C 0.158 H 298.4°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#5A3095
RGBrgb(90, 48, 149)
HSLhsl(265, 51%, 39%)
HSVhsv(265, 68%, 58%)
CMYKcmyk(39.6%, 67.8%, 0%, 41.6%)
CIE-LABlab(30.54, 40.81, -48.61)
CIE-LCHlch(30.54, 63.46, 310.02°)
OKLaboklab(41.9% 0.0749 -0.1386)
OKLCHoklch(41.9% 0.158 298.4)
XYZxyz(10.6968, 6.4573, 29.1108)
Luminance0.0646 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3095 #6B9530
analogous
#303995 #5A3095 #8C3095
triadic
#5A3095 #955A30 #30955A
tetradic
#5A3095 #953039 #6B9530 #30958C
square
#5A3095 #953039 #6B9530 #30958C
split-complementary
#5A3095 #958C30 #399530
monochromatic
#221238 #3E2167 #5A3095 #7641C2 #976FD1

Accessibility & contrast

On white

9.16
#5A3095 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#5A3095 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3095
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3095#FFFFFF#000000##FFFFFF
##5A30951.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004898
Deuteranopia (green-blind)
#004793
Tritanopia (blue-blind)
#4C475E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5a3095;
/* rgb */ color: rgb(90, 48, 149);
/* oklch */ color: oklch(41.9% 0.158 298.4);
Tailwind
colors: {
  custom: {
    50: '#8e6bb5',
    500: '#5a3095',
    950: '#000000',
  },
}
SCSS
$custom: #5a3095;
$custom-light: #8e6bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3095",
  "rgb": {
    "r": 90,
    "g": 48,
    "b": 149
  },
  "hsl": {
    "h": 264.95,
    "s": 51.269,
    "l": 38.627
  },
  "oklch": {
    "l": 0.41901,
    "c": 0.15752,
    "h": 298.4
  },
  "luminance": 0.06457
}

Semantic roles & 50–950 ramp

primary
#5A3095
secondary
#97B869
accent
#DB4DA0
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5A3095

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

Preview Lab → · Contrast checker → · Palette generator →

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