#5E257E#5E257E

#5E257E is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.2% C 0.147 H 310.8°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#5E257E
RGBrgb(94, 37, 126)
HSLhsl(278, 55%, 32%)
HSVhsv(278, 71%, 49%)
CMYKcmyk(25.4%, 70.6%, 0%, 50.6%)
CIE-LABlab(27.32, 41.52, -39.49)
CIE-LCHlch(27.32, 57.30, 316.43°)
OKLaboklab(39.17% 0.0962 -0.1116)
OKLCHoklch(39.17% 0.147 310.8)
XYZxyz(9.0428, 5.2094, 20.2638)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E257E #457E25
analogous
#32257E #5E257E #7E2572
triadic
#5E257E #7E5E25 #257E5E
tetradic
#5E257E #7E3225 #457E25 #25727E
square
#5E257E #7E3225 #457E25 #25727E
split-complementary
#5E257E #727E25 #257E32
monochromatic
#17091F #3B174F #5E257E #8133AD #A051CC

Accessibility & contrast

On white

10.29
#5E257E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#5E257E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E257E
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E257E#FFFFFF#000000##FFFFFF
##5E257E1.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E81
Deuteranopia (green-blind)
#19427C
Tritanopia (blue-blind)
#5A384E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5e257e;
/* rgb */ color: rgb(94, 37, 126);
/* oklch */ color: oklch(39.2% 0.147 310.8);
Tailwind
colors: {
  custom: {
    50: '#8f64a4',
    500: '#5e257e',
    950: '#000000',
  },
}
SCSS
$custom: #5e257e;
$custom-light: #8f64a4;
$custom-dark: #000000;
JSON
{
  "hex": "#5e257e",
  "rgb": {
    "r": 94,
    "g": 37,
    "b": 126
  },
  "hsl": {
    "h": 278.427,
    "s": 54.601,
    "l": 31.961
  },
  "oklch": {
    "l": 0.39171,
    "c": 0.14731,
    "h": 310.8
  },
  "luminance": 0.05209
}

Semantic roles & 50–950 ramp

primary
#5E257E
secondary
#72B04F
accent
#DE4A7F
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D060F
muted
#7E7A7F

Preview Lab

Preview with #5E257E

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

Preview Lab → · Contrast checker → · Palette generator →

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