#5E248E#5E248E

#5E248E is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.3% C 0.166 H 304.9°. Best body text is #FFFFFF at 9.91:1 contrast (WCAG AA passes).

Color values

HEX#5E248E
RGBrgb(94, 36, 142)
HSLhsl(273, 60%, 35%)
HSVhsv(273, 75%, 56%)
CMYKcmyk(33.8%, 74.6%, 0%, 44.3%)
CIE-LABlab(28.37, 45.82, -47.80)
CIE-LCHlch(28.37, 66.21, 313.79°)
OKLaboklab(40.29% 0.0948 -0.136)
OKLCHoklch(40.29% 0.166 304.9)
XYZxyz(10.1284, 5.5945, 26.1322)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E248E #548E24
analogous
#29248E #5E248E #8E2489
triadic
#5E248E #8E5E24 #248E5E
tetradic
#5E248E #8E2924 #548E24 #24898E
square
#5E248E #8E2924 #548E24 #24898E
split-complementary
#5E248E #898E24 #248E29
monochromatic
#1D0B2C #3E185D #5E248E #7E30BF #9C58D5

Accessibility & contrast

On white

9.91
#5E248E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#5E248E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E248E
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E248E#FFFFFF#000000##FFFFFF
##5E248E1.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e248e;
/* rgb */ color: rgb(94, 36, 142);
/* oklch */ color: oklch(40.3% 0.166 304.9);
Tailwind
colors: {
  custom: {
    50: '#9065b0',
    500: '#5e248e',
    950: '#000000',
  },
}
SCSS
$custom: #5e248e;
$custom-light: #9065b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e248e",
  "rgb": {
    "r": 94,
    "g": 36,
    "b": 142
  },
  "hsl": {
    "h": 272.83,
    "s": 59.551,
    "l": 34.902
  },
  "oklch": {
    "l": 0.40294,
    "c": 0.16578,
    "h": 304.9
  },
  "luminance": 0.05594
}

Semantic roles & 50–950 ramp

primary
#5E248E
secondary
#82B955
accent
#E3458C
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5E248E

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

Preview Lab → · Contrast checker → · Palette generator →

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