#5E298B#5E298B

#5E298B is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.7% C 0.156 H 305.2°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#5E298B
RGBrgb(94, 41, 139)
HSLhsl(272, 54%, 35%)
HSVhsv(272, 71%, 55%)
CMYKcmyk(32.4%, 70.5%, 0%, 45.5%)
CIE-LABlab(28.98, 42.70, -44.94)
CIE-LCHlch(28.98, 62.00, 313.54°)
OKLaboklab(40.66% 0.09 -0.1276)
OKLCHoklch(40.66% 0.156 305.2)
XYZxyz(10.0682, 5.8297, 25.0159)
Luminance0.0583 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E298B #568B29
analogous
#2D298B #5E298B #8B2987
triadic
#5E298B #8B5E29 #298B5E
tetradic
#5E298B #8B2D29 #568B29 #29878B
square
#5E298B #8B2D29 #568B29 #29878B
split-complementary
#5E298B #878B29 #298B2D
monochromatic
#1E0D2C #3E1B5C #5E298B #7E37BA #9C5FD0

Accessibility & contrast

On white

9.70
#5E298B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#5E298B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E298B
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E298B#FFFFFF#000000##FFFFFF
##5E298B1.009.702.179.70
#FFFFFF9.701.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438E
Deuteranopia (green-blind)
#044489
Tritanopia (blue-blind)
#563F57
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5e298b;
/* rgb */ color: rgb(94, 41, 139);
/* oklch */ color: oklch(40.7% 0.156 305.2);
Tailwind
colors: {
  custom: {
    50: '#9067ae',
    500: '#5e298b',
    950: '#000000',
  },
}
SCSS
$custom: #5e298b;
$custom-light: #9067ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5e298b",
  "rgb": {
    "r": 94,
    "g": 41,
    "b": 139
  },
  "hsl": {
    "h": 272.449,
    "s": 54.444,
    "l": 35.294
  },
  "oklch": {
    "l": 0.40657,
    "c": 0.15615,
    "h": 305.2
  },
  "luminance": 0.0583
}

Semantic roles & 50–950 ramp

primary
#5E298B
secondary
#84B55B
accent
#DE4A8E
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5E298B

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

Preview Lab → · Contrast checker → · Palette generator →

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