#4A2178#4A2178

#4A2178 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.6% C 0.141 H 301.0°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#4A2178
RGBrgb(74, 33, 120)
HSLhsl(268, 57%, 30%)
HSVhsv(268, 73%, 47%)
CMYKcmyk(38.3%, 72.5%, 0%, 52.9%)
CIE-LABlab(23.34, 37.58, -42.27)
CIE-LCHlch(23.34, 56.56, 311.63°)
OKLaboklab(35.57% 0.0724 -0.1205)
OKLCHoklch(35.57% 0.141 301)
XYZxyz(6.7572, 3.8996, 18.1624)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2178 #4F7821
analogous
#212378 #4A2178 #762178
triadic
#4A2178 #784A21 #21784A
tetradic
#4A2178 #782123 #4F7821 #217876
square
#4A2178 #782123 #4F7821 #217876
split-complementary
#4A2178 #787621 #237821
monochromatic
#0F0718 #2C1448 #4A2178 #682EA8 #8647CC

Accessibility & contrast

On white

11.80
#4A2178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#4A2178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2178
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2178#FFFFFF#000000##FFFFFF
##4A21781.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377B
Deuteranopia (green-blind)
#003776
Tritanopia (blue-blind)
#40364A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4a2178;
/* rgb */ color: rgb(74, 33, 120);
/* oklch */ color: oklch(35.6% 0.141 301.0);
Tailwind
colors: {
  custom: {
    50: '#8160a0',
    500: '#4a2178',
    950: '#000000',
  },
}
SCSS
$custom: #4a2178;
$custom-light: #8160a0;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2178",
  "rgb": {
    "r": 74,
    "g": 33,
    "b": 120
  },
  "hsl": {
    "h": 268.276,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.35573,
    "c": 0.14054,
    "h": 301
  },
  "luminance": 0.039
}

Semantic roles & 50–950 ramp

primary
#4A2178
secondary
#7DAB4A
accent
#E04898
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050F
muted
#7C797E

Preview Lab

Preview with #4A2178

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

Preview Lab → · Contrast checker → · Palette generator →

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