#5B249F#5B249F

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

Color values

HEX#5B249F
RGBrgb(91, 36, 159)
HSLhsl(267, 63%, 38%)
HSVhsv(267, 77%, 62%)
CMYKcmyk(42.8%, 77.4%, 0%, 37.6%)
CIE-LABlab(29.38, 49.52, -56.58)
CIE-LCHlch(29.38, 75.19, 311.19°)
OKLaboklab(41.37% 0.0864 -0.1619)
OKLCHoklch(41.37% 0.183 298.1)
XYZxyz(11.2016, 5.9889, 33.3600)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B249F #689F24
analogous
#242B9F #5B249F #98249F
triadic
#5B249F #9F5B24 #249F5B
tetradic
#5B249F #9F242B #689F24 #249F98
square
#5B249F #9F242B #689F24 #249F98
split-complementary
#5B249F #9F9824 #2B9F24
monochromatic
#220D3B #3E196D #5B249F #7830D0 #9862DB

Accessibility & contrast

On white

9.56
#5B249F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B249F
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B249F#FFFFFF#000000##FFFFFF
##5B249F1.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A2
Deuteranopia (green-blind)
#00449D
Tritanopia (blue-blind)
#4A4560
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5b249f;
/* rgb */ color: rgb(91, 36, 159);
/* oklch */ color: oklch(41.4% 0.183 298.1);
Tailwind
colors: {
  custom: {
    50: '#9065bc',
    500: '#5b249f',
    950: '#000000',
  },
}
SCSS
$custom: #5b249f;
$custom-light: #9065bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b249f",
  "rgb": {
    "r": 91,
    "g": 36,
    "b": 159
  },
  "hsl": {
    "h": 266.829,
    "s": 63.077,
    "l": 38.235
  },
  "oklch": {
    "l": 0.41366,
    "c": 0.18349,
    "h": 298.1
  },
  "luminance": 0.05989
}

Semantic roles & 50–950 ramp

primary
#5B249F
secondary
#95C15E
accent
#E6429D
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5B249F

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

Preview Lab → · Contrast checker → · Palette generator →

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