#5A279A#5A279A

#5A279A is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.1% C 0.175 H 298.5°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#5A279A
RGBrgb(90, 39, 154)
HSLhsl(267, 60%, 38%)
HSVhsv(267, 75%, 60%)
CMYKcmyk(41.6%, 74.7%, 0%, 39.6%)
CIE-LABlab(29.31, 46.69, -53.67)
CIE-LCHlch(29.31, 71.14, 311.03°)
OKLaboklab(41.15% 0.0834 -0.1534)
OKLCHoklch(41.15% 0.175 298.5)
XYZxyz(10.7732, 5.9576, 31.1479)
Luminance0.0596 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A279A #679A27
analogous
#272D9A #5A279A #93279A
triadic
#5A279A #9A5A27 #279A5A
tetradic
#5A279A #9A272D #679A27 #279A93
square
#5A279A #9A272D #679A27 #279A93
split-complementary
#5A279A #9A9327 #2D9A27
monochromatic
#210E38 #3D1B69 #5A279A #7733CB #9764D8

Accessibility & contrast

On white

9.58
#5A279A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5A279A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A279A
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A279A#FFFFFF#000000##FFFFFF
##5A279A1.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459D
Deuteranopia (green-blind)
#004498
Tritanopia (blue-blind)
#4A445E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5a279a;
/* rgb */ color: rgb(90, 39, 154);
/* oklch */ color: oklch(41.1% 0.175 298.5);
Tailwind
colors: {
  custom: {
    50: '#8f66b9',
    500: '#5a279a',
    950: '#000000',
  },
}
SCSS
$custom: #5a279a;
$custom-light: #8f66b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a279a",
  "rgb": {
    "r": 90,
    "g": 39,
    "b": 154
  },
  "hsl": {
    "h": 266.609,
    "s": 59.585,
    "l": 37.843
  },
  "oklch": {
    "l": 0.41149,
    "c": 0.17461,
    "h": 298.5
  },
  "luminance": 0.05958
}

Semantic roles & 50–950 ramp

primary
#5A279A
secondary
#94BD5F
accent
#E3459D
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A279A

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

Preview Lab → · Contrast checker → · Palette generator →

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