#5E237F#5E237F

#5E237F is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.0% C 0.151 H 310.6°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#5E237F
RGBrgb(94, 35, 127)
HSLhsl(278, 57%, 32%)
HSVhsv(278, 72%, 50%)
CMYKcmyk(26%, 72.4%, 0%, 50.2%)
CIE-LABlab(27.06, 42.70, -40.55)
CIE-LCHlch(27.06, 58.89, 316.48°)
OKLaboklab(39% 0.0984 -0.1147)
OKLCHoklch(39% 0.151 310.6)
XYZxyz(9.0472, 5.1143, 20.5851)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E237F #447F23
analogous
#30237F #5E237F #7F2372
triadic
#5E237F #7F5E23 #237F5E
tetradic
#5E237F #7F3023 #447F23 #23727F
square
#5E237F #7F3023 #447F23 #23727F
split-complementary
#5E237F #727F23 #237F30
monochromatic
#17091F #3A164F #5E237F #8230AF #A04ECE

Accessibility & contrast

On white

10.38
#5E237F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#5E237F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E237F
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E237F#FFFFFF#000000##FFFFFF
##5E237F1.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D82
Deuteranopia (green-blind)
#14417D
Tritanopia (blue-blind)
#5A374E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5e237f;
/* rgb */ color: rgb(94, 35, 127);
/* oklch */ color: oklch(39.0% 0.151 310.6);
Tailwind
colors: {
  custom: {
    50: '#8f63a5',
    500: '#5e237f',
    950: '#000000',
  },
}
SCSS
$custom: #5e237f;
$custom-light: #8f63a5;
$custom-dark: #000000;
JSON
{
  "hex": "#5e237f",
  "rgb": {
    "r": 94,
    "g": 35,
    "b": 127
  },
  "hsl": {
    "h": 278.478,
    "s": 56.79,
    "l": 31.765
  },
  "oklch": {
    "l": 0.39004,
    "c": 0.15107,
    "h": 310.6
  },
  "luminance": 0.05114
}

Semantic roles & 50–950 ramp

primary
#5E237F
secondary
#71B14C
accent
#E0487E
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D060F
muted
#7E7A7F

Preview Lab

Preview with #5E237F

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

Preview Lab → · Contrast checker → · Palette generator →

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