#5A307C#5A307C

#5A307C is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.0% C 0.127 H 307.1°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#5A307C
RGBrgb(90, 48, 124)
HSLhsl(273, 44%, 34%)
HSVhsv(273, 61%, 49%)
CMYKcmyk(27.4%, 61.3%, 0%, 51.4%)
CIE-LABlab(28.75, 34.23, -35.96)
CIE-LCHlch(28.75, 49.65, 313.59°)
OKLaboklab(40.04% 0.0766 -0.1014)
OKLCHoklch(40.04% 0.127 307.1)
XYZxyz(8.9107, 5.7429, 19.7039)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A307C #527C30
analogous
#34307C #5A307C #7C3078
triadic
#5A307C #7C5A30 #307C5A
tetradic
#5A307C #7C3430 #527C30 #30787C
square
#5A307C #7C3430 #527C30 #30787C
split-complementary
#5A307C #787C30 #307C34
monochromatic
#1A0E24 #3A1F50 #5A307C #7A41A8 #9864C3

Accessibility & contrast

On white

9.77
#5A307C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5A307C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A307C
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A307C#FFFFFF#000000##FFFFFF
##5A307C1.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10427E
Deuteranopia (green-blind)
#23447A
Tritanopia (blue-blind)
#553F51
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5a307c;
/* rgb */ color: rgb(90, 48, 124);
/* oklch */ color: oklch(40.0% 0.127 307.1);
Tailwind
colors: {
  custom: {
    50: '#8b6aa2',
    500: '#5a307c',
    950: '#000000',
  },
}
SCSS
$custom: #5a307c;
$custom-light: #8b6aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a307c",
  "rgb": {
    "r": 90,
    "g": 48,
    "b": 124
  },
  "hsl": {
    "h": 273.158,
    "s": 44.186,
    "l": 33.725
  },
  "oklch": {
    "l": 0.40042,
    "c": 0.1271,
    "h": 307.1
  },
  "luminance": 0.05743
}

Semantic roles & 50–950 ramp

primary
#5A307C
secondary
#80AA5E
accent
#D4548D
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0C070F
muted
#7D7A7F

Preview Lab

Preview with #5A307C

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

Preview Lab → · Contrast checker → · Palette generator →

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