#4E23B4#4E23B4

#4E23B4 is a dark, highly saturated violet. Relative luminance 0.061; OKLCH L 41.8% C 0.207 H 287.0°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#4E23B4
RGBrgb(78, 35, 180)
HSLhsl(258, 67%, 42%)
HSVhsv(258, 81%, 71%)
CMYKcmyk(56.7%, 80.6%, 0%, 29.4%)
CIE-LABlab(29.70, 53.68, -68.75)
CIE-LCHlch(29.70, 87.23, 307.98°)
OKLaboklab(41.85% 0.0607 -0.1979)
OKLCHoklch(41.85% 0.207 287)
XYZxyz(11.9787, 6.1164, 43.7206)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E23B4 #89B423
analogous
#2341B4 #4E23B4 #9723B4
triadic
#4E23B4 #B44E23 #23B44E
tetradic
#4E23B4 #B42341 #89B423 #23B497
square
#4E23B4 #B42341 #89B423 #23B497
split-complementary
#4E23B4 #B49723 #41B423
monochromatic
#220F4E #381981 #4E23B4 #6A3BD9 #916EE3

Accessibility & contrast

On white

9.44
#4E23B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#4E23B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E23B4
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E23B4#FFFFFF#000000##FFFFFF
##4E23B41.009.442.229.44
#FFFFFF9.441.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B8
Deuteranopia (green-blind)
#0042B1
Tritanopia (blue-blind)
#1E4E6C
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4e23b4;
/* rgb */ color: rgb(78, 35, 180);
/* oklch */ color: oklch(41.8% 0.207 287.0);
Tailwind
colors: {
  custom: {
    50: '#8c64cc',
    500: '#4e23b4',
    950: '#000000',
  },
}
SCSS
$custom: #4e23b4;
$custom-light: #8c64cc;
$custom-dark: #000000;
JSON
{
  "hex": "#4e23b4",
  "rgb": {
    "r": 78,
    "g": 35,
    "b": 180
  },
  "hsl": {
    "h": 257.793,
    "s": 67.442,
    "l": 42.157
  },
  "oklch": {
    "l": 0.41846,
    "c": 0.20704,
    "h": 287
  },
  "luminance": 0.06117
}

Semantic roles & 50–950 ramp

primary
#4E23B4
secondary
#ADC969
accent
#EA3DB7
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0614
muted
#7E7A82

Preview Lab

Preview with #4E23B4

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

Preview Lab → · Contrast checker → · Palette generator →

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