#4A218B#4A218B

#4A218B is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.2% C 0.163 H 294.8°. Best body text is #FFFFFF at 11.16:1 contrast (WCAG AA passes).

Color values

HEX#4A218B
RGBrgb(74, 33, 139)
HSLhsl(263, 62%, 34%)
HSVhsv(263, 76%, 55%)
CMYKcmyk(46.8%, 76.3%, 0%, 45.5%)
CIE-LABlab(24.98, 42.75, -51.57)
CIE-LCHlch(24.98, 66.99, 309.66°)
OKLaboklab(37.24% 0.0683 -0.1478)
OKLCHoklch(37.24% 0.163 294.8)
XYZxyz(8.0268, 4.4074, 24.8489)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A218B #628B21
analogous
#212D8B #4A218B #7F218B
triadic
#4A218B #8B4A21 #218B4A
tetradic
#4A218B #8B212D #628B21 #218B7F
square
#4A218B #8B212D #628B21 #218B7F
split-complementary
#4A218B #8B7F21 #2D8B21
monochromatic
#150A28 #30155A #4A218B #642DBC #8451D6

Accessibility & contrast

On white

11.16
#4A218B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#4A218B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A218B
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A218B#FFFFFF#000000##FFFFFF
##4A218B1.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8E
Deuteranopia (green-blind)
#003A89
Tritanopia (blue-blind)
#373D54
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4a218b;
/* rgb */ color: rgb(74, 33, 139);
/* oklch */ color: oklch(37.2% 0.163 294.8);
Tailwind
colors: {
  custom: {
    50: '#8361ae',
    500: '#4a218b',
    950: '#000000',
  },
}
SCSS
$custom: #4a218b;
$custom-light: #8361ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4a218b",
  "rgb": {
    "r": 74,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 263.208,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.37243,
    "c": 0.16279,
    "h": 294.8
  },
  "luminance": 0.04408
}

Semantic roles & 50–950 ramp

primary
#4A218B
secondary
#90B94F
accent
#E543A6
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4A218B

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

Preview Lab → · Contrast checker → · Palette generator →

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