#4E23C6#4E23C6

#4E23C6 is a dark, highly saturated violet. Relative luminance 0.069; OKLCH L 43.7% C 0.227 H 283.9°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#4E23C6
RGBrgb(78, 35, 198)
HSLhsl(256, 70%, 46%)
HSVhsv(256, 82%, 78%)
CMYKcmyk(60.6%, 82.3%, 0%, 22.4%)
CIE-LABlab(31.57, 58.58, -76.30)
CIE-LCHlch(31.57, 96.19, 307.51°)
OKLaboklab(43.69% 0.0546 -0.22)
OKLCHoklch(43.69% 0.227 283.9)
XYZxyz(13.9328, 6.8980, 54.0124)
Luminance0.0690 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E23C6 #9BC623
analogous
#234AC6 #4E23C6 #9F23C6
triadic
#4E23C6 #C64E23 #23C64E
tetradic
#4E23C6 #C6234A #9BC623 #23C69F
square
#4E23C6 #C6234A #9BC623 #23C69F
split-complementary
#4E23C6 #C69F23 #4AC623
monochromatic
#25115E #3A1A92 #4E23C6 #6F48DF #987CE8

Accessibility & contrast

On white

8.82
#4E23C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#4E23C6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E23C6
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E23C6#FFFFFF#000000##FFFFFF
##4E23C61.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FCA
Deuteranopia (green-blind)
#0045C3
Tritanopia (blue-blind)
#005677
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4e23c6;
/* rgb */ color: rgb(78, 35, 198);
/* oklch */ color: oklch(43.7% 0.227 283.9);
Tailwind
colors: {
  custom: {
    50: '#8f66d9',
    500: '#4e23c6',
    950: '#000000',
  },
}
SCSS
$custom: #4e23c6;
$custom-light: #8f66d9;
$custom-dark: #000000;
JSON
{
  "hex": "#4e23c6",
  "rgb": {
    "r": 78,
    "g": 35,
    "b": 198
  },
  "hsl": {
    "h": 255.828,
    "s": 69.957,
    "l": 45.686
  },
  "oklch": {
    "l": 0.43691,
    "c": 0.22664,
    "h": 283.9
  },
  "luminance": 0.06899
}

Semantic roles & 50–950 ramp

primary
#4E23C6
secondary
#B8D075
accent
#ED3BBE
background
#F9F6FD
surface
#F2EBFB
border
#CCC6D4
text
#0E0615
muted
#7E7A83

Preview Lab

Preview with #4E23C6

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

Preview Lab → · Contrast checker → · Palette generator →

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