#4A2CAA#4A2CAA

#4A2CAA is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.5% C 0.187 H 285.8°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#4A2CAA
RGBrgb(74, 44, 170)
HSLhsl(254, 59%, 42%)
HSVhsv(254, 74%, 67%)
CMYKcmyk(56.5%, 74.1%, 0%, 33.3%)
CIE-LABlab(29.81, 46.04, -62.61)
CIE-LCHlch(29.81, 77.72, 306.33°)
OKLaboklab(41.53% 0.0512 -0.1802)
OKLCHoklch(41.53% 0.187 285.8)
XYZxyz(10.9782, 6.1589, 38.6327)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2CAA #8CAA2C
analogous
#2C4DAA #4A2CAA #892CAA
triadic
#4A2CAA #AA4A2C #2CAA4A
tetradic
#4A2CAA #AA2C4D #8CAA2C #2CAA89
square
#4A2CAA #AA2C4D #8CAA2C #2CAA89
split-complementary
#4A2CAA #AA892C #4DAA2C
monochromatic
#201349 #351F79 #4A2CAA #6544CF #8D75DB

Accessibility & contrast

On white

9.41
#4A2CAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#4A2CAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2CAA
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2CAA#FFFFFF#000000##FFFFFF
##4A2CAA1.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AE
Deuteranopia (green-blind)
#0042A8
Tritanopia (blue-blind)
#1D4F69
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4a2caa;
/* rgb */ color: rgb(74, 44, 170);
/* oklch */ color: oklch(41.5% 0.187 285.8);
Tailwind
colors: {
  custom: {
    50: '#8768c4',
    500: '#4a2caa',
    950: '#000000',
  },
}
SCSS
$custom: #4a2caa;
$custom-light: #8768c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2caa",
  "rgb": {
    "r": 74,
    "g": 44,
    "b": 170
  },
  "hsl": {
    "h": 254.286,
    "s": 58.879,
    "l": 41.961
  },
  "oklch": {
    "l": 0.41529,
    "c": 0.18732,
    "h": 285.8
  },
  "luminance": 0.06159
}

Semantic roles & 50–950 ramp

primary
#4A2CAA
secondary
#AFC36F
accent
#E246BD
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4A2CAA

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

Preview Lab → · Contrast checker → · Palette generator →

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