#5E248F#5E248F

#5E248F is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.4% C 0.167 H 304.6°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#5E248F
RGBrgb(94, 36, 143)
HSLhsl(273, 60%, 35%)
HSVhsv(273, 75%, 56%)
CMYKcmyk(34.3%, 74.8%, 0%, 43.9%)
CIE-LABlab(28.45, 46.06, -48.29)
CIE-LCHlch(28.45, 66.73, 313.65°)
OKLaboklab(40.38% 0.0946 -0.1374)
OKLCHoklch(40.38% 0.167 304.6)
XYZxyz(10.2038, 5.6247, 26.5294)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E248F #558F24
analogous
#28248F #5E248F #8F248B
triadic
#5E248F #8F5E24 #248F5E
tetradic
#5E248F #8F2824 #558F24 #248B8F
square
#5E248F #8F2824 #558F24 #248B8F
split-complementary
#5E248F #8B8F24 #248F28
monochromatic
#1E0B2D #3E185E #5E248F #7E30C0 #9C58D5

Accessibility & contrast

On white

9.88
#5E248F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#5E248F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E248F
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E248F#FFFFFF#000000##FFFFFF
##5E248F1.009.882.139.88
#FFFFFF9.881.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004292
Deuteranopia (green-blind)
#00438D
Tritanopia (blue-blind)
#553E57
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5e248f;
/* rgb */ color: rgb(94, 36, 143);
/* oklch */ color: oklch(40.4% 0.167 304.6);
Tailwind
colors: {
  custom: {
    50: '#9065b1',
    500: '#5e248f',
    950: '#000000',
  },
}
SCSS
$custom: #5e248f;
$custom-light: #9065b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e248f",
  "rgb": {
    "r": 94,
    "g": 36,
    "b": 143
  },
  "hsl": {
    "h": 272.523,
    "s": 59.777,
    "l": 35.098
  },
  "oklch": {
    "l": 0.40376,
    "c": 0.16685,
    "h": 304.6
  },
  "luminance": 0.05625
}

Semantic roles & 50–950 ramp

primary
#5E248F
secondary
#83B955
accent
#E3458D
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5E248F

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

Preview Lab → · Contrast checker → · Palette generator →

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