#4E23A5#4E23A5

#4E23A5 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.4% C 0.190 H 290.1°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#4E23A5
RGBrgb(78, 35, 165)
HSLhsl(260, 65%, 39%)
HSVhsv(260, 79%, 65%)
CMYKcmyk(52.7%, 78.8%, 0%, 35.3%)
CIE-LABlab(28.22, 49.58, -62.20)
CIE-LCHlch(28.22, 79.54, 308.56°)
OKLaboklab(40.37% 0.0654 -0.1788)
OKLCHoklch(40.37% 0.19 290.1)
XYZxyz(10.5325, 5.5379, 36.1040)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E23A5 #7AA523
analogous
#2339A5 #4E23A5 #8F23A5
triadic
#4E23A5 #A54E23 #23A54E
tetradic
#4E23A5 #A52339 #7AA523 #23A58F
square
#4E23A5 #A52339 #7AA523 #23A58F
split-complementary
#4E23A5 #A58F23 #39A523
monochromatic
#1E0E40 #361873 #4E23A5 #6732D3 #8D64DE

Accessibility & contrast

On white

9.96
#4E23A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#4E23A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E23A5
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E23A5#FFFFFF#000000##FFFFFF
##4E23A51.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A9
Deuteranopia (green-blind)
#003FA3
Tritanopia (blue-blind)
#2E4864
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4e23a5;
/* rgb */ color: rgb(78, 35, 165);
/* oklch */ color: oklch(40.4% 0.190 290.1);
Tailwind
colors: {
  custom: {
    50: '#8964c1',
    500: '#4e23a5',
    950: '#000000',
  },
}
SCSS
$custom: #4e23a5;
$custom-light: #8964c1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e23a5",
  "rgb": {
    "r": 78,
    "g": 35,
    "b": 165
  },
  "hsl": {
    "h": 259.846,
    "s": 65,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40365,
    "c": 0.19039,
    "h": 290.1
  },
  "luminance": 0.05538
}

Semantic roles & 50–950 ramp

primary
#4E23A5
secondary
#A3C460
accent
#E840B0
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #4E23A5

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

Preview Lab → · Contrast checker → · Palette generator →

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