#4E23A7#4E23A7

#4E23A7 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.6% C 0.193 H 289.7°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#4E23A7
RGBrgb(78, 35, 167)
HSLhsl(260, 65%, 40%)
HSVhsv(260, 79%, 65%)
CMYKcmyk(53.3%, 79%, 0%, 34.5%)
CIE-LABlab(28.41, 50.12, -63.08)
CIE-LCHlch(28.41, 80.57, 308.47°)
OKLaboklab(40.56% 0.0648 -0.1814)
OKLCHoklch(40.56% 0.193 289.7)
XYZxyz(10.7159, 5.6113, 37.0702)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E23A7 #7CA723
analogous
#233AA7 #4E23A7 #9023A7
triadic
#4E23A7 #A74E23 #23A74E
tetradic
#4E23A7 #A7233A #7CA723 #23A790
square
#4E23A7 #A7233A #7CA723 #23A790
split-complementary
#4E23A7 #A79023 #3AA723
monochromatic
#1F0E42 #361874 #4E23A7 #6733D4 #8D66DF

Accessibility & contrast

On white

9.89
#4E23A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#4E23A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E23A7
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E23A7#FFFFFF#000000##FFFFFF
##4E23A71.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AB
Deuteranopia (green-blind)
#0040A5
Tritanopia (blue-blind)
#2C4965
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4e23a7;
/* rgb */ color: rgb(78, 35, 167);
/* oklch */ color: oklch(40.6% 0.193 289.7);
Tailwind
colors: {
  custom: {
    50: '#8a64c2',
    500: '#4e23a7',
    950: '#000000',
  },
}
SCSS
$custom: #4e23a7;
$custom-light: #8a64c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e23a7",
  "rgb": {
    "r": 78,
    "g": 35,
    "b": 167
  },
  "hsl": {
    "h": 259.545,
    "s": 65.347,
    "l": 39.608
  },
  "oklch": {
    "l": 0.40559,
    "c": 0.19263,
    "h": 289.7
  },
  "luminance": 0.05612
}

Semantic roles & 50–950 ramp

primary
#4E23A7
secondary
#A4C461
accent
#E83FB1
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4E23A7

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

Preview Lab → · Contrast checker → · Palette generator →

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