#5E248A#5E248A

#5E248A is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.0% C 0.162 H 306.3°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#5E248A
RGBrgb(94, 36, 138)
HSLhsl(274, 59%, 34%)
HSVhsv(274, 74%, 54%)
CMYKcmyk(31.9%, 73.9%, 0%, 45.9%)
CIE-LABlab(28.05, 44.85, -45.83)
CIE-LCHlch(28.05, 64.12, 314.38°)
OKLaboklab(39.97% 0.0956 -0.1302)
OKLCHoklch(39.97% 0.162 306.3)
XYZxyz(9.8334, 5.4765, 24.5789)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E248A #508A24
analogous
#2B248A #5E248A #8A2483
triadic
#5E248A #8A5E24 #248A5E
tetradic
#5E248A #8A2B24 #508A24 #24838A
square
#5E248A #8A2B24 #508A24 #24838A
split-complementary
#5E248A #838A24 #248A2B
monochromatic
#1C0B29 #3D1759 #5E248A #7F31BB #9D56D3

Accessibility & contrast

On white

10.02
#5E248A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E248A
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E248A#FFFFFF#000000##FFFFFF
##5E248A1.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408D
Deuteranopia (green-blind)
#004288
Tritanopia (blue-blind)
#563C55
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5e248a;
/* rgb */ color: rgb(94, 36, 138);
/* oklch */ color: oklch(40.0% 0.162 306.3);
Tailwind
colors: {
  custom: {
    50: '#9064ad',
    500: '#5e248a',
    950: '#000000',
  },
}
SCSS
$custom: #5e248a;
$custom-light: #9064ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5e248a",
  "rgb": {
    "r": 94,
    "g": 36,
    "b": 138
  },
  "hsl": {
    "h": 274.118,
    "s": 58.621,
    "l": 34.118
  },
  "oklch": {
    "l": 0.39973,
    "c": 0.1615,
    "h": 306.3
  },
  "luminance": 0.05476
}

Semantic roles & 50–950 ramp

primary
#5E248A
secondary
#7EB753
accent
#E24689
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5E248A

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

Preview Lab → · Contrast checker → · Palette generator →

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