#5E248B#5E248B

#5E248B is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.1% C 0.163 H 305.9°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#5E248B
RGBrgb(94, 36, 139)
HSLhsl(274, 59%, 34%)
HSVhsv(274, 74%, 55%)
CMYKcmyk(32.4%, 74.1%, 0%, 45.5%)
CIE-LABlab(28.13, 45.09, -46.32)
CIE-LCHlch(28.13, 64.64, 314.23°)
OKLaboklab(40.05% 0.0954 -0.1316)
OKLCHoklch(40.05% 0.163 305.9)
XYZxyz(9.9061, 5.5056, 24.9619)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E248B #518B24
analogous
#2A248B #5E248B #8B2485
triadic
#5E248B #8B5E24 #248B5E
tetradic
#5E248B #8B2A24 #518B24 #24858B
square
#5E248B #8B2A24 #518B24 #24858B
split-complementary
#5E248B #858B24 #248B2A
monochromatic
#1C0B2A #3D175A #5E248B #7F31BC #9D56D3

Accessibility & contrast

On white

9.99
#5E248B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#5E248B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E248B
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E248B#FFFFFF#000000##FFFFFF
##5E248B1.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418E
Deuteranopia (green-blind)
#004389
Tritanopia (blue-blind)
#563C55
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5e248b;
/* rgb */ color: rgb(94, 36, 139);
/* oklch */ color: oklch(40.1% 0.163 305.9);
Tailwind
colors: {
  custom: {
    50: '#9064ae',
    500: '#5e248b',
    950: '#000000',
  },
}
SCSS
$custom: #5e248b;
$custom-light: #9064ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5e248b",
  "rgb": {
    "r": 94,
    "g": 36,
    "b": 139
  },
  "hsl": {
    "h": 273.786,
    "s": 58.857,
    "l": 34.314
  },
  "oklch": {
    "l": 0.40053,
    "c": 0.16257,
    "h": 305.9
  },
  "luminance": 0.05506
}

Semantic roles & 50–950 ramp

primary
#5E248B
secondary
#7FB753
accent
#E2468A
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5E248B

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

Preview Lab → · Contrast checker → · Palette generator →

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