#5B249E#5B249E

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

Color values

HEX#5B249E
RGBrgb(91, 36, 158)
HSLhsl(267, 63%, 38%)
HSVhsv(267, 77%, 62%)
CMYKcmyk(42.4%, 77.2%, 0%, 38%)
CIE-LABlab(29.30, 49.26, -56.12)
CIE-LCHlch(29.30, 74.67, 311.28°)
OKLaboklab(41.28% 0.0866 -0.1605)
OKLCHoklch(41.28% 0.182 298.4)
XYZxyz(11.1152, 5.9543, 32.9048)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B249E #679E24
analogous
#242A9E #5B249E #98249E
triadic
#5B249E #9E5B24 #249E5B
tetradic
#5B249E #9E242A #679E24 #249E98
square
#5B249E #9E242A #679E24 #249E98
split-complementary
#5B249E #9E9824 #2A9E24
monochromatic
#220D3A #3E196C #5B249E #782FD0 #9861DB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B249E#FFFFFF#000000##FFFFFF
##5B249E1.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)
#0045A1
Deuteranopia (green-blind)
#00449C
Tritanopia (blue-blind)
#4A4560
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5b249e;
/* rgb */ color: rgb(91, 36, 158);
/* oklch */ color: oklch(41.3% 0.182 298.4);
Tailwind
colors: {
  custom: {
    50: '#9065bc',
    500: '#5b249e',
    950: '#000000',
  },
}
SCSS
$custom: #5b249e;
$custom-light: #9065bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b249e",
  "rgb": {
    "r": 91,
    "g": 36,
    "b": 158
  },
  "hsl": {
    "h": 267.049,
    "s": 62.887,
    "l": 38.039
  },
  "oklch": {
    "l": 0.41278,
    "c": 0.18242,
    "h": 298.4
  },
  "luminance": 0.05955
}

Semantic roles & 50–950 ramp

primary
#5B249E
secondary
#94C05E
accent
#E6429C
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5B249E

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

Preview Lab → · Contrast checker → · Palette generator →

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