#5E23B1#5E23B1

#5E23B1 is a dark, highly saturated violet. Relative luminance 0.068; OKLCH L 43.2% C 0.204 H 295.1°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#5E23B1
RGBrgb(94, 35, 177)
HSLhsl(265, 67%, 42%)
HSVhsv(265, 80%, 69%)
CMYKcmyk(46.9%, 80.2%, 0%, 30.6%)
CIE-LABlab(31.24, 54.97, -64.36)
CIE-LCHlch(31.24, 84.64, 310.50°)
OKLaboklab(43.25% 0.0864 -0.1846)
OKLCHoklch(43.25% 0.204 295.1)
XYZxyz(13.1508, 6.7557, 42.1975)
Luminance0.0676 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E23B1 #76B123
analogous
#232FB1 #5E23B1 #A523B1
triadic
#5E23B1 #B15E23 #23B15E
tetradic
#5E23B1 #B1232F #76B123 #23B1A5
square
#5E23B1 #B1232F #76B123 #23B1A5
split-complementary
#5E23B1 #B1A523 #2FB123
monochromatic
#280F4B #43197E #5E23B1 #7B39D8 #9D6CE2

Accessibility & contrast

On white

8.93
#5E23B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5E23B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E23B1
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E23B1#FFFFFF#000000##FFFFFF
##5E23B11.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB5
Deuteranopia (green-blind)
#0047AE
Tritanopia (blue-blind)
#464C6B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5e23b1;
/* rgb */ color: rgb(94, 35, 177);
/* oklch */ color: oklch(43.2% 0.204 295.1);
Tailwind
colors: {
  custom: {
    50: '#9466c9',
    500: '#5e23b1',
    950: '#000000',
  },
}
SCSS
$custom: #5e23b1;
$custom-light: #9466c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5e23b1",
  "rgb": {
    "r": 94,
    "g": 35,
    "b": 177
  },
  "hsl": {
    "h": 264.93,
    "s": 66.981,
    "l": 41.569
  },
  "oklch": {
    "l": 0.43245,
    "c": 0.20382,
    "h": 295.1
  },
  "luminance": 0.06756
}

Semantic roles & 50–950 ramp

primary
#5E23B1
secondary
#A0C868
accent
#EA3EA2
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5E23B1

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

Preview Lab → · Contrast checker → · Palette generator →

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