#4E23B2#4E23B2

#4E23B2 is a dark, highly saturated violet. Relative luminance 0.060; OKLCH L 41.6% C 0.205 H 287.4°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#4E23B2
RGBrgb(78, 35, 178)
HSLhsl(258, 67%, 42%)
HSVhsv(258, 80%, 70%)
CMYKcmyk(56.2%, 80.3%, 0%, 30.2%)
CIE-LABlab(29.50, 53.14, -67.89)
CIE-LCHlch(29.50, 86.21, 308.05°)
OKLaboklab(41.65% 0.0613 -0.1954)
OKLCHoklch(41.65% 0.205 287.4)
XYZxyz(11.7764, 6.0355, 42.6553)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E23B2 #87B223
analogous
#2340B2 #4E23B2 #9623B2
triadic
#4E23B2 #B24E23 #23B24E
tetradic
#4E23B2 #B22340 #87B223 #23B296
square
#4E23B2 #B22340 #87B223 #23B296
split-complementary
#4E23B2 #B29623 #40B223
monochromatic
#210F4C #38197F #4E23B2 #6A3AD8 #906DE2

Accessibility & contrast

On white

9.51
#4E23B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#4E23B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E23B2
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E23B2#FFFFFF#000000##FFFFFF
##4E23B21.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B6
Deuteranopia (green-blind)
#0042AF
Tritanopia (blue-blind)
#204E6B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4e23b2;
/* rgb */ color: rgb(78, 35, 178);
/* oklch */ color: oklch(41.6% 0.205 287.4);
Tailwind
colors: {
  custom: {
    50: '#8b64ca',
    500: '#4e23b2',
    950: '#000000',
  },
}
SCSS
$custom: #4e23b2;
$custom-light: #8b64ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4e23b2",
  "rgb": {
    "r": 78,
    "g": 35,
    "b": 178
  },
  "hsl": {
    "h": 258.042,
    "s": 67.136,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41646,
    "c": 0.20484,
    "h": 287.4
  },
  "luminance": 0.06036
}

Semantic roles & 50–950 ramp

primary
#4E23B2
secondary
#ACC968
accent
#EA3EB6
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4E23B2

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

Preview Lab → · Contrast checker → · Palette generator →

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