#4E23A9#4E23A9

#4E23A9 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.8% C 0.195 H 289.2°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#4E23A9
RGBrgb(78, 35, 169)
HSLhsl(259, 66%, 40%)
HSVhsv(259, 79%, 66%)
CMYKcmyk(53.8%, 79.3%, 0%, 33.7%)
CIE-LABlab(28.61, 50.67, -63.97)
CIE-LCHlch(28.61, 81.61, 308.38°)
OKLaboklab(40.75% 0.0642 -0.184)
OKLCHoklch(40.75% 0.195 289.2)
XYZxyz(10.9023, 5.6858, 38.0514)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E23A9 #7EA923
analogous
#233BA9 #4E23A9 #9123A9
triadic
#4E23A9 #A94E23 #23A94E
tetradic
#4E23A9 #A9233B #7EA923 #23A991
square
#4E23A9 #A9233B #7EA923 #23A991
split-complementary
#4E23A9 #A99123 #3BA923
monochromatic
#1F0E44 #371976 #4E23A9 #6834D5 #8E67DF

Accessibility & contrast

On white

9.83
#4E23A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#4E23A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E23A9
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E23A9#FFFFFF#000000##FFFFFF
##4E23A91.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AD
Deuteranopia (green-blind)
#0040A7
Tritanopia (blue-blind)
#2A4A66
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4e23a9;
/* rgb */ color: rgb(78, 35, 169);
/* oklch */ color: oklch(40.8% 0.195 289.2);
Tailwind
colors: {
  custom: {
    50: '#8a64c4',
    500: '#4e23a9',
    950: '#000000',
  },
}
SCSS
$custom: #4e23a9;
$custom-light: #8a64c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e23a9",
  "rgb": {
    "r": 78,
    "g": 35,
    "b": 169
  },
  "hsl": {
    "h": 259.254,
    "s": 65.686,
    "l": 40
  },
  "oklch": {
    "l": 0.40754,
    "c": 0.19486,
    "h": 289.2
  },
  "luminance": 0.05686
}

Semantic roles & 50–950 ramp

primary
#4E23A9
secondary
#A6C563
accent
#E93FB2
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4E23A9

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

Preview Lab → · Contrast checker → · Palette generator →

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