#5B279B#5B279B

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

Color values

HEX#5B279B
RGBrgb(91, 39, 155)
HSLhsl(267, 60%, 38%)
HSVhsv(267, 75%, 61%)
CMYKcmyk(41.3%, 74.8%, 0%, 39.2%)
CIE-LABlab(29.52, 47.13, -53.93)
CIE-LCHlch(29.52, 71.62, 311.15°)
OKLaboklab(41.35% 0.0847 -0.1541)
OKLCHoklch(41.35% 0.176 298.8)
XYZxyz(10.9548, 6.0416, 31.5930)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B279B #679B27
analogous
#272D9B #5B279B #95279B
triadic
#5B279B #9B5B27 #279B5B
tetradic
#5B279B #9B272D #679B27 #279B95
square
#5B279B #9B272D #679B27 #279B95
split-complementary
#5B279B #9B9527 #2D9B27
monochromatic
#220E39 #3E1B6A #5B279B #7833CC #9864D8

Accessibility & contrast

On white

9.51
#5B279B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5B279B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B279B
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B279B#FFFFFF#000000##FFFFFF
##5B279B1.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469E
Deuteranopia (green-blind)
#004499
Tritanopia (blue-blind)
#4B455F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5b279b;
/* rgb */ color: rgb(91, 39, 155);
/* oklch */ color: oklch(41.4% 0.176 298.8);
Tailwind
colors: {
  custom: {
    50: '#8f66b9',
    500: '#5b279b',
    950: '#000000',
  },
}
SCSS
$custom: #5b279b;
$custom-light: #8f66b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b279b",
  "rgb": {
    "r": 91,
    "g": 39,
    "b": 155
  },
  "hsl": {
    "h": 266.897,
    "s": 59.794,
    "l": 38.039
  },
  "oklch": {
    "l": 0.41353,
    "c": 0.17585,
    "h": 298.8
  },
  "luminance": 0.06042
}

Semantic roles & 50–950 ramp

primary
#5B279B
secondary
#94BE60
accent
#E3459C
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5B279B

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

Preview Lab → · Contrast checker → · Palette generator →

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