#4E229F#4E229F

#4E229F is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.7% C 0.185 H 291.6°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#4E229F
RGBrgb(78, 34, 159)
HSLhsl(261, 65%, 38%)
HSVhsv(261, 79%, 62%)
CMYKcmyk(50.9%, 78.6%, 0%, 37.6%)
CIE-LABlab(27.48, 48.39, -59.76)
CIE-LCHlch(27.48, 76.90, 309.00°)
OKLaboklab(39.68% 0.068 -0.1717)
OKLCHoklch(39.68% 0.185 291.6)
XYZxyz(9.9701, 5.2666, 33.2854)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E229F #739F22
analogous
#22349F #4E229F #8C229F
triadic
#4E229F #9F4E22 #229F4E
tetradic
#4E229F #9F2234 #739F22 #229F8C
square
#4E229F #9F2234 #739F22 #229F8C
split-complementary
#4E229F #9F8C22 #349F22
monochromatic
#1D0C3A #35176D #4E229F #672DD1 #8B5FDD

Accessibility & contrast

On white

10.23
#4E229F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#4E229F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E229F
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E229F#FFFFFF#000000##FFFFFF
##4E229F1.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A2
Deuteranopia (green-blind)
#003E9D
Tritanopia (blue-blind)
#324560
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4e229f;
/* rgb */ color: rgb(78, 34, 159);
/* oklch */ color: oklch(39.7% 0.185 291.6);
Tailwind
colors: {
  custom: {
    50: '#8863bc',
    500: '#4e229f',
    950: '#000000',
  },
}
SCSS
$custom: #4e229f;
$custom-light: #8863bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4e229f",
  "rgb": {
    "r": 78,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 261.12,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.39678,
    "c": 0.18465,
    "h": 291.6
  },
  "luminance": 0.05267
}

Semantic roles & 50–950 ramp

primary
#4E229F
secondary
#9EC15B
accent
#E840AD
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4E229F

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

Preview Lab → · Contrast checker → · Palette generator →

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