#5A279B#5A279B

#5A279B is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.2% C 0.176 H 298.3°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#5A279B
RGBrgb(90, 39, 155)
HSLhsl(266, 60%, 38%)
HSVhsv(266, 75%, 61%)
CMYKcmyk(41.9%, 74.8%, 0%, 39.2%)
CIE-LABlab(29.39, 46.95, -54.14)
CIE-LCHlch(29.39, 71.66, 310.93°)
OKLaboklab(41.24% 0.0832 -0.1548)
OKLCHoklch(41.24% 0.176 298.3)
XYZxyz(10.8568, 5.9911, 31.5884)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A279B #689B27
analogous
#272E9B #5A279B #94279B
triadic
#5A279B #9B5A27 #279B5A
tetradic
#5A279B #9B272E #689B27 #279B94
square
#5A279B #9B272E #689B27 #279B94
split-complementary
#5A279B #9B9427 #2E9B27
monochromatic
#210E39 #3E1B6A #5A279B #7633CC #9764D8

Accessibility & contrast

On white

9.55
#5A279B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5A279B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A279B
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A279B#FFFFFF#000000##FFFFFF
##5A279B1.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459E
Deuteranopia (green-blind)
#004499
Tritanopia (blue-blind)
#4A455F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5a279b;
/* rgb */ color: rgb(90, 39, 155);
/* oklch */ color: oklch(41.2% 0.176 298.3);
Tailwind
colors: {
  custom: {
    50: '#8f66b9',
    500: '#5a279b',
    950: '#000000',
  },
}
SCSS
$custom: #5a279b;
$custom-light: #8f66b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a279b",
  "rgb": {
    "r": 90,
    "g": 39,
    "b": 155
  },
  "hsl": {
    "h": 266.379,
    "s": 59.794,
    "l": 38.039
  },
  "oklch": {
    "l": 0.41235,
    "c": 0.17571,
    "h": 298.3
  },
  "luminance": 0.05991
}

Semantic roles & 50–950 ramp

primary
#5A279B
secondary
#95BE60
accent
#E3459D
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A279B

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

Preview Lab → · Contrast checker → · Palette generator →

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