#4E228F#4E228F

#4E228F is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.2% C 0.167 H 295.8°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#4E228F
RGBrgb(78, 34, 143)
HSLhsl(264, 62%, 35%)
HSVhsv(264, 76%, 56%)
CMYKcmyk(45.5%, 76.2%, 0%, 43.9%)
CIE-LABlab(26.00, 44.04, -52.36)
CIE-LCHlch(26.00, 68.42, 310.07°)
OKLaboklab(38.19% 0.0725 -0.15)
OKLCHoklch(38.19% 0.167 295.8)
XYZxyz(8.6705, 4.7467, 26.4407)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E228F #638F22
analogous
#222D8F #4E228F #85228F
triadic
#4E228F #8F4E22 #228F4E
tetradic
#4E228F #8F222D #638F22 #228F85
square
#4E228F #8F222D #638F22 #228F85
split-complementary
#4E228F #8F8522 #2D8F22
monochromatic
#180A2C #33165E #4E228F #692EC0 #8955D7

Accessibility & contrast

On white

10.77
#4E228F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#4E228F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E228F
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E228F#FFFFFF#000000##FFFFFF
##4E228F1.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E92
Deuteranopia (green-blind)
#003C8D
Tritanopia (blue-blind)
#3C3F57
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4e228f;
/* rgb */ color: rgb(78, 34, 143);
/* oklch */ color: oklch(38.2% 0.167 295.8);
Tailwind
colors: {
  custom: {
    50: '#8662b1',
    500: '#4e228f',
    950: '#000000',
  },
}
SCSS
$custom: #4e228f;
$custom-light: #8662b1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e228f",
  "rgb": {
    "r": 78,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 264.22,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.38187,
    "c": 0.16657,
    "h": 295.8
  },
  "luminance": 0.04747
}

Semantic roles & 50–950 ramp

primary
#4E228F
secondary
#90BA52
accent
#E543A3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4E228F

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

Preview Lab → · Contrast checker → · Palette generator →

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