#4E218F#4E218F

#4E218F is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.1% C 0.168 H 296.0°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#4E218F
RGBrgb(78, 33, 143)
HSLhsl(265, 63%, 35%)
HSVhsv(265, 77%, 56%)
CMYKcmyk(45.5%, 76.9%, 0%, 43.9%)
CIE-LABlab(25.83, 44.52, -52.63)
CIE-LCHlch(25.83, 68.94, 310.22°)
OKLaboklab(38.07% 0.0734 -0.1507)
OKLCHoklch(38.07% 0.168 296)
XYZxyz(8.6423, 4.6904, 26.4313)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E218F #628F21
analogous
#212B8F #4E218F #85218F
triadic
#4E218F #8F4E21 #218F4E
tetradic
#4E218F #8F212B #628F21 #218F85
square
#4E218F #8F212B #628F21 #218F85
split-complementary
#4E218F #8F8521 #2B8F21
monochromatic
#180A2C #33165D #4E218F #692CC1 #8953D7

Accessibility & contrast

On white

10.83
#4E218F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#4E218F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E218F
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E218F#FFFFFF#000000##FFFFFF
##4E218F1.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e218f;
/* rgb */ color: rgb(78, 33, 143);
/* oklch */ color: oklch(38.1% 0.168 296.0);
Tailwind
colors: {
  custom: {
    50: '#8661b1',
    500: '#4e218f',
    950: '#000000',
  },
}
SCSS
$custom: #4e218f;
$custom-light: #8661b1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e218f",
  "rgb": {
    "r": 78,
    "g": 33,
    "b": 143
  },
  "hsl": {
    "h": 264.545,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.3807,
    "c": 0.16767,
    "h": 296
  },
  "luminance": 0.04691
}

Semantic roles & 50–950 ramp

primary
#4E218F
secondary
#90BB51
accent
#E642A3
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4E218F

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

Preview Lab → · Contrast checker → · Palette generator →

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