#4A2276#4A2276

#4A2276 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.5% C 0.137 H 301.6°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#4A2276
RGBrgb(74, 34, 118)
HSLhsl(269, 55%, 30%)
HSVhsv(269, 71%, 46%)
CMYKcmyk(37.3%, 71.2%, 0%, 53.7%)
CIE-LABlab(23.36, 36.51, -40.95)
CIE-LCHlch(23.36, 54.87, 311.72°)
OKLaboklab(35.54% 0.0716 -0.1166)
OKLCHoklch(35.54% 0.137 301.6)
XYZxyz(6.6653, 3.9079, 17.5392)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2276 #4E7622
analogous
#222476 #4A2276 #742276
triadic
#4A2276 #764A22 #22764A
tetradic
#4A2276 #762224 #4E7622 #227674
square
#4A2276 #762224 #4E7622 #227674
split-complementary
#4A2276 #767422 #247622
monochromatic
#0F0718 #2C1446 #4A2276 #6830A6 #8648CA

Accessibility & contrast

On white

11.79
#4A2276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A2276
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2276#FFFFFF#000000##FFFFFF
##4A22761.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4a2276;
/* rgb */ color: rgb(74, 34, 118);
/* oklch */ color: oklch(35.5% 0.137 301.6);
Tailwind
colors: {
  custom: {
    50: '#81609e',
    500: '#4a2276',
    950: '#000000',
  },
}
SCSS
$custom: #4a2276;
$custom-light: #81609e;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2276",
  "rgb": {
    "r": 74,
    "g": 34,
    "b": 118
  },
  "hsl": {
    "h": 268.571,
    "s": 55.263,
    "l": 29.804
  },
  "oklch": {
    "l": 0.35542,
    "c": 0.13681,
    "h": 301.6
  },
  "luminance": 0.03908
}

Semantic roles & 50–950 ramp

primary
#4A2276
secondary
#7CA94B
accent
#DF4997
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4A2276

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

Preview Lab → · Contrast checker → · Palette generator →

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