#4A2176#4A2176

#4A2176 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.4% C 0.138 H 301.8°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#4A2176
RGBrgb(74, 33, 118)
HSLhsl(269, 56%, 30%)
HSVhsv(269, 72%, 46%)
CMYKcmyk(37.3%, 72%, 0%, 53.7%)
CIE-LABlab(23.17, 37.04, -41.26)
CIE-LCHlch(23.17, 55.45, 311.92°)
OKLaboklab(35.41% 0.0727 -0.1175)
OKLCHoklch(35.41% 0.138 301.8)
XYZxyz(6.6371, 3.8515, 17.5298)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2176 #4D7621
analogous
#212376 #4A2176 #752176
triadic
#4A2176 #764A21 #21764A
tetradic
#4A2176 #762123 #4D7621 #217675
square
#4A2176 #762123 #4D7621 #217675
split-complementary
#4A2176 #767521 #237621
monochromatic
#0F0718 #2C1446 #4A2176 #682EA6 #8646CB

Accessibility & contrast

On white

11.86
#4A2176 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#4A2176 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2176
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2176#FFFFFF#000000##FFFFFF
##4A21761.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003779
Deuteranopia (green-blind)
#003774
Tritanopia (blue-blind)
#413549
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4a2176;
/* rgb */ color: rgb(74, 33, 118);
/* oklch */ color: oklch(35.4% 0.138 301.8);
Tailwind
colors: {
  custom: {
    50: '#81609e',
    500: '#4a2176',
    950: '#000000',
  },
}
SCSS
$custom: #4a2176;
$custom-light: #81609e;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2176",
  "rgb": {
    "r": 74,
    "g": 33,
    "b": 118
  },
  "hsl": {
    "h": 268.941,
    "s": 56.291,
    "l": 29.608
  },
  "oklch": {
    "l": 0.35406,
    "c": 0.13817,
    "h": 301.8
  },
  "luminance": 0.03852
}

Semantic roles & 50–950 ramp

primary
#4A2176
secondary
#7BA94A
accent
#E04897
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4A2176

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

Preview Lab → · Contrast checker → · Palette generator →

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