#5D249D#5D249D

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

Color values

HEX#5D249D
RGBrgb(93, 36, 157)
HSLhsl(268, 63%, 38%)
HSVhsv(268, 77%, 62%)
CMYKcmyk(40.8%, 77.1%, 0%, 38.4%)
CIE-LABlab(29.47, 49.35, -55.21)
CIE-LCHlch(29.47, 74.05, 311.79°)
OKLaboklab(41.43% 0.0899 -0.1578)
OKLCHoklch(41.43% 0.182 299.7)
XYZxyz(11.2293, 6.0231, 32.4627)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D249D #649D24
analogous
#24289D #5D249D #99249D
triadic
#5D249D #9D5D24 #249D5D
tetradic
#5D249D #9D2428 #649D24 #249D99
square
#5D249D #9D2428 #649D24 #249D99
split-complementary
#5D249D #9D9924 #289D24
monochromatic
#220D39 #40196B #5D249D #7A2FCF #9A61DB

Accessibility & contrast

On white

9.53
#5D249D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D249D
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D249D#FFFFFF#000000##FFFFFF
##5D249D1.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A0
Deuteranopia (green-blind)
#00449B
Tritanopia (blue-blind)
#4E445F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5d249d;
/* rgb */ color: rgb(93, 36, 157);
/* oklch */ color: oklch(41.4% 0.182 299.7);
Tailwind
colors: {
  custom: {
    50: '#9165bb',
    500: '#5d249d',
    950: '#000000',
  },
}
SCSS
$custom: #5d249d;
$custom-light: #9165bb;
$custom-dark: #000000;
JSON
{
  "hex": "#5d249d",
  "rgb": {
    "r": 93,
    "g": 36,
    "b": 157
  },
  "hsl": {
    "h": 268.264,
    "s": 62.694,
    "l": 37.843
  },
  "oklch": {
    "l": 0.4143,
    "c": 0.18162,
    "h": 299.7
  },
  "luminance": 0.06023
}

Semantic roles & 50–950 ramp

primary
#5D249D
secondary
#91C05D
accent
#E64299
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5D249D

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

Preview Lab → · Contrast checker → · Palette generator →

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