#5E248D#5E248D

#5E248D is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.2% C 0.165 H 305.2°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#5E248D
RGBrgb(94, 36, 141)
HSLhsl(273, 59%, 35%)
HSVhsv(273, 74%, 55%)
CMYKcmyk(33.3%, 74.5%, 0%, 44.7%)
CIE-LABlab(28.29, 45.57, -47.31)
CIE-LCHlch(28.29, 65.69, 313.93°)
OKLaboklab(40.21% 0.095 -0.1345)
OKLCHoklch(40.21% 0.165 305.2)
XYZxyz(10.0536, 5.5646, 25.7386)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E248D #538D24
analogous
#2A248D #5E248D #8D2488
triadic
#5E248D #8D5E24 #248D5E
tetradic
#5E248D #8D2A24 #538D24 #24888D
square
#5E248D #8D2A24 #538D24 #24888D
split-complementary
#5E248D #888D24 #248D2A
monochromatic
#1D0B2B #3D185C #5E248D #7F30BE #9C57D4

Accessibility & contrast

On white

9.94
#5E248D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#5E248D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E248D
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E248D#FFFFFF#000000##FFFFFF
##5E248D1.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004190
Deuteranopia (green-blind)
#00438B
Tritanopia (blue-blind)
#553D56
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5e248d;
/* rgb */ color: rgb(94, 36, 141);
/* oklch */ color: oklch(40.2% 0.165 305.2);
Tailwind
colors: {
  custom: {
    50: '#9064af',
    500: '#5e248d',
    950: '#000000',
  },
}
SCSS
$custom: #5e248d;
$custom-light: #9064af;
$custom-dark: #000000;
JSON
{
  "hex": "#5e248d",
  "rgb": {
    "r": 94,
    "g": 36,
    "b": 141
  },
  "hsl": {
    "h": 273.143,
    "s": 59.322,
    "l": 34.706
  },
  "oklch": {
    "l": 0.40213,
    "c": 0.16471,
    "h": 305.2
  },
  "luminance": 0.05565
}

Semantic roles & 50–950 ramp

primary
#5E248D
secondary
#81B854
accent
#E3458C
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5E248D

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

Preview Lab → · Contrast checker → · Palette generator →

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