#4A218F#4A218F

#4A218F is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.167 H 293.7°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#4A218F
RGBrgb(74, 33, 143)
HSLhsl(262, 63%, 35%)
HSVhsv(262, 77%, 56%)
CMYKcmyk(48.3%, 76.9%, 0%, 43.9%)
CIE-LABlab(25.34, 43.85, -53.46)
CIE-LCHlch(25.34, 69.15, 309.36°)
OKLaboklab(37.61% 0.0672 -0.1533)
OKLCHoklch(37.61% 0.167 293.7)
XYZxyz(8.3245, 4.5265, 26.4164)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A218F #668F21
analogous
#212F8F #4A218F #81218F
triadic
#4A218F #8F4A21 #218F4A
tetradic
#4A218F #8F212F #668F21 #218F81
square
#4A218F #8F212F #668F21 #218F81
split-complementary
#4A218F #8F8121 #2F8F21
monochromatic
#170A2C #30165D #4A218F #642CC1 #8453D7

Accessibility & contrast

On white

11.02
#4A218F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#4A218F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A218F
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A218F#FFFFFF#000000##FFFFFF
##4A218F1.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#003A8D
Tritanopia (blue-blind)
#353F57
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4a218f;
/* rgb */ color: rgb(74, 33, 143);
/* oklch */ color: oklch(37.6% 0.167 293.7);
Tailwind
colors: {
  custom: {
    50: '#8461b1',
    500: '#4a218f',
    950: '#000000',
  },
}
SCSS
$custom: #4a218f;
$custom-light: #8461b1;
$custom-dark: #000000;
JSON
{
  "hex": "#4a218f",
  "rgb": {
    "r": 74,
    "g": 33,
    "b": 143
  },
  "hsl": {
    "h": 262.364,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.37612,
    "c": 0.1674,
    "h": 293.7
  },
  "luminance": 0.04527
}

Semantic roles & 50–950 ramp

primary
#4A218F
secondary
#93BB51
accent
#E642A9
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4A218F

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

Preview Lab → · Contrast checker → · Palette generator →

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