#4A218A#4A218A

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

Color values

HEX#4A218A
RGBrgb(74, 33, 138)
HSLhsl(263, 61%, 34%)
HSVhsv(263, 76%, 54%)
CMYKcmyk(46.4%, 76.1%, 0%, 45.9%)
CIE-LABlab(24.88, 42.48, -51.10)
CIE-LCHlch(24.88, 66.45, 309.74°)
OKLaboklab(37.15% 0.0685 -0.1464)
OKLCHoklch(37.15% 0.162 295.1)
XYZxyz(7.9541, 4.3783, 24.4658)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A218A #618A21
analogous
#212C8A #4A218A #7E218A
triadic
#4A218A #8A4A21 #218A4A
tetradic
#4A218A #8A212C #618A21 #218A7E
square
#4A218A #8A212C #618A21 #218A7E
split-complementary
#4A218A #8A7E21 #2C8A21
monochromatic
#150927 #301559 #4A218A #642DBB #8450D5

Accessibility & contrast

On white

11.20
#4A218A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A218A
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A218A#FFFFFF#000000##FFFFFF
##4A218A1.0011.201.8811.20
#FFFFFF11.201.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8D
Deuteranopia (green-blind)
#003988
Tritanopia (blue-blind)
#383D54
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4a218a;
/* rgb */ color: rgb(74, 33, 138);
/* oklch */ color: oklch(37.2% 0.162 295.1);
Tailwind
colors: {
  custom: {
    50: '#8361ad',
    500: '#4a218a',
    950: '#000000',
  },
}
SCSS
$custom: #4a218a;
$custom-light: #8361ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4a218a",
  "rgb": {
    "r": 74,
    "g": 33,
    "b": 138
  },
  "hsl": {
    "h": 263.429,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.37151,
    "c": 0.16162,
    "h": 295.1
  },
  "luminance": 0.04379
}

Semantic roles & 50–950 ramp

primary
#4A218A
secondary
#8FB94E
accent
#E543A6
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4A218A

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

Preview Lab → · Contrast checker → · Palette generator →

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