#4E23A0#4E23A0

#4E23A0 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.9% C 0.185 H 291.2°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#4E23A0
RGBrgb(78, 35, 160)
HSLhsl(261, 64%, 38%)
HSVhsv(261, 78%, 63%)
CMYKcmyk(51.2%, 78.1%, 0%, 37.3%)
CIE-LABlab(27.74, 48.21, -59.95)
CIE-LCHlch(27.74, 76.93, 308.80°)
OKLaboklab(39.88% 0.067 -0.1722)
OKLCHoklch(39.88% 0.185 291.2)
XYZxyz(10.0863, 5.3594, 33.7539)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E23A0 #75A023
analogous
#2336A0 #4E23A0 #8C23A0
triadic
#4E23A0 #A04E23 #23A04E
tetradic
#4E23A0 #A02336 #75A023 #23A08C
square
#4E23A0 #A02336 #75A023 #23A08C
split-complementary
#4E23A0 #A08C23 #36A023
monochromatic
#1D0D3C #36186E #4E23A0 #672FD1 #8B61DC

Accessibility & contrast

On white

10.14
#4E23A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#4E23A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E23A0
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E23A0#FFFFFF#000000##FFFFFF
##4E23A01.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A3
Deuteranopia (green-blind)
#003F9E
Tritanopia (blue-blind)
#324661
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4e23a0;
/* rgb */ color: rgb(78, 35, 160);
/* oklch */ color: oklch(39.9% 0.185 291.2);
Tailwind
colors: {
  custom: {
    50: '#8963bd',
    500: '#4e23a0',
    950: '#000000',
  },
}
SCSS
$custom: #4e23a0;
$custom-light: #8963bd;
$custom-dark: #000000;
JSON
{
  "hex": "#4e23a0",
  "rgb": {
    "r": 78,
    "g": 35,
    "b": 160
  },
  "hsl": {
    "h": 260.64,
    "s": 64.103,
    "l": 38.235
  },
  "oklch": {
    "l": 0.39884,
    "c": 0.18478,
    "h": 291.2
  },
  "luminance": 0.0536
}

Semantic roles & 50–950 ramp

primary
#4E23A0
secondary
#9FC15D
accent
#E741AE
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4E23A0

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

Preview Lab → · Contrast checker → · Palette generator →

#4E23A0 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva