#4E23A8#4E23A8

#4E23A8 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.7% C 0.194 H 289.5°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#4E23A8
RGBrgb(78, 35, 168)
HSLhsl(259, 66%, 40%)
HSVhsv(259, 79%, 66%)
CMYKcmyk(53.6%, 79.2%, 0%, 34.1%)
CIE-LABlab(28.51, 50.40, -63.53)
CIE-LCHlch(28.51, 81.09, 308.43°)
OKLaboklab(40.66% 0.0645 -0.1827)
OKLCHoklch(40.66% 0.194 289.5)
XYZxyz(10.8087, 5.6484, 37.5589)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E23A8 #7DA823
analogous
#233BA8 #4E23A8 #9023A8
triadic
#4E23A8 #A84E23 #23A84E
tetradic
#4E23A8 #A8233B #7DA823 #23A890
square
#4E23A8 #A8233B #7DA823 #23A890
split-complementary
#4E23A8 #A89023 #3BA823
monochromatic
#1F0E43 #361875 #4E23A8 #6834D5 #8D66DF

Accessibility & contrast

On white

9.86
#4E23A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#4E23A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E23A8
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E23A8#FFFFFF#000000##FFFFFF
##4E23A81.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AC
Deuteranopia (green-blind)
#0040A6
Tritanopia (blue-blind)
#2B4965
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4e23a8;
/* rgb */ color: rgb(78, 35, 168);
/* oklch */ color: oklch(40.7% 0.194 289.5);
Tailwind
colors: {
  custom: {
    50: '#8a64c3',
    500: '#4e23a8',
    950: '#000000',
  },
}
SCSS
$custom: #4e23a8;
$custom-light: #8a64c3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e23a8",
  "rgb": {
    "r": 78,
    "g": 35,
    "b": 168
  },
  "hsl": {
    "h": 259.398,
    "s": 65.517,
    "l": 39.804
  },
  "oklch": {
    "l": 0.40656,
    "c": 0.19375,
    "h": 289.5
  },
  "luminance": 0.05649
}

Semantic roles & 50–950 ramp

primary
#4E23A8
secondary
#A5C562
accent
#E83FB2
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4E23A8

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

Preview Lab → · Contrast checker → · Palette generator →

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