#5E298A#5E298A

#5E298A is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.6% C 0.155 H 305.5°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#5E298A
RGBrgb(94, 41, 138)
HSLhsl(273, 54%, 35%)
HSVhsv(273, 70%, 54%)
CMYKcmyk(31.9%, 70.3%, 0%, 45.9%)
CIE-LABlab(28.90, 42.46, -44.45)
CIE-LCHlch(28.90, 61.47, 313.69°)
OKLaboklab(40.58% 0.0901 -0.1262)
OKLCHoklch(40.58% 0.155 305.5)
XYZxyz(9.9955, 5.8006, 24.6329)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E298A #558A29
analogous
#2E298A #5E298A #8A2985
triadic
#5E298A #8A5E29 #298A5E
tetradic
#5E298A #8A2E29 #558A29 #29858A
square
#5E298A #8A2E29 #558A29 #29858A
split-complementary
#5E298A #858A29 #298A2E
monochromatic
#1E0D2C #3E1B5B #5E298A #7E37B9 #9C5ECF

Accessibility & contrast

On white

9.72
#5E298A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#5E298A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E298A
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E298A#FFFFFF#000000##FFFFFF
##5E298A1.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438D
Deuteranopia (green-blind)
#074488
Tritanopia (blue-blind)
#563F56
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5e298a;
/* rgb */ color: rgb(94, 41, 138);
/* oklch */ color: oklch(40.6% 0.155 305.5);
Tailwind
colors: {
  custom: {
    50: '#9067ad',
    500: '#5e298a',
    950: '#000000',
  },
}
SCSS
$custom: #5e298a;
$custom-light: #9067ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5e298a",
  "rgb": {
    "r": 94,
    "g": 41,
    "b": 138
  },
  "hsl": {
    "h": 272.784,
    "s": 54.19,
    "l": 35.098
  },
  "oklch": {
    "l": 0.4058,
    "c": 0.15503,
    "h": 305.5
  },
  "luminance": 0.05801
}

Semantic roles & 50–950 ramp

primary
#5E298A
secondary
#83B55A
accent
#DE4A8D
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5E298A

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

Preview Lab → · Contrast checker → · Palette generator →

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