#4A218D#4A218D

#4A218D is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.4% C 0.165 H 294.2°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#4A218D
RGBrgb(74, 33, 141)
HSLhsl(263, 62%, 34%)
HSVhsv(263, 77%, 55%)
CMYKcmyk(47.5%, 76.6%, 0%, 44.7%)
CIE-LABlab(25.16, 43.30, -52.52)
CIE-LCHlch(25.16, 68.07, 309.50°)
OKLaboklab(37.43% 0.0677 -0.1506)
OKLCHoklch(37.43% 0.165 294.2)
XYZxyz(8.1743, 4.4664, 25.6256)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A218D #648D21
analogous
#212E8D #4A218D #80218D
triadic
#4A218D #8D4A21 #218D4A
tetradic
#4A218D #8D212E #648D21 #218D80
square
#4A218D #8D212E #648D21 #218D80
split-complementary
#4A218D #8D8021 #2E8D21
monochromatic
#160A2A #30155B #4A218D #642DBF #8452D6

Accessibility & contrast

On white

11.09
#4A218D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#4A218D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A218D
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A218D#FFFFFF#000000##FFFFFF
##4A218D1.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D90
Deuteranopia (green-blind)
#003A8B
Tritanopia (blue-blind)
#363E55
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4a218d;
/* rgb */ color: rgb(74, 33, 141);
/* oklch */ color: oklch(37.4% 0.165 294.2);
Tailwind
colors: {
  custom: {
    50: '#8461af',
    500: '#4a218d',
    950: '#000000',
  },
}
SCSS
$custom: #4a218d;
$custom-light: #8461af;
$custom-dark: #000000;
JSON
{
  "hex": "#4a218d",
  "rgb": {
    "r": 74,
    "g": 33,
    "b": 141
  },
  "hsl": {
    "h": 262.778,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.37427,
    "c": 0.16509,
    "h": 294.2
  },
  "luminance": 0.04467
}

Semantic roles & 50–950 ramp

primary
#4A218D
secondary
#92BA50
accent
#E543A7
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4A218D

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

Preview Lab → · Contrast checker → · Palette generator →

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