#4A2ACA#4A2ACA

#4A2ACA is a dark, highly saturated violet. Relative luminance 0.074; OKLCH L 44.5% C 0.226 H 281.2°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#4A2ACA
RGBrgb(74, 42, 202)
HSLhsl(252, 66%, 48%)
HSVhsv(252, 79%, 79%)
CMYKcmyk(63.4%, 79.2%, 0%, 20.8%)
CIE-LABlab(32.65, 56.31, -76.88)
CIE-LCHlch(32.65, 95.29, 306.22°)
OKLaboklab(44.47% 0.0438 -0.2218)
OKLCHoklch(44.47% 0.226 281.2)
XYZxyz(14.3093, 7.3750, 56.5351)
Luminance0.0738 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2ACA #AACA2A
analogous
#2A5ACA #4A2ACA #9A2ACA
triadic
#4A2ACA #CA4A2A #2ACA4A
tetradic
#4A2ACA #CA2A5A #AACA2A #2ACA9A
square
#4A2ACA #CA2A5A #AACA2A #2ACA9A
split-complementary
#4A2ACA #CA9A2A #5ACA2A
monochromatic
#251565 #371F97 #4A2ACA #7055DC #9B88E6

Accessibility & contrast

On white

8.48
#4A2ACA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#4A2ACA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2ACA
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2ACA#FFFFFF#000000##FFFFFF
##4A2ACA1.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052CE
Deuteranopia (green-blind)
#0047C7
Tritanopia (blue-blind)
#005A7A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4a2aca;
/* rgb */ color: rgb(74, 42, 202);
/* oklch */ color: oklch(44.5% 0.226 281.2);
Tailwind
colors: {
  custom: {
    50: '#8d69dc',
    500: '#4a2aca',
    950: '#000000',
  },
}
SCSS
$custom: #4a2aca;
$custom-light: #8d69dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2aca",
  "rgb": {
    "r": 74,
    "g": 42,
    "b": 202
  },
  "hsl": {
    "h": 252,
    "s": 65.574,
    "l": 47.843
  },
  "oklch": {
    "l": 0.44466,
    "c": 0.22613,
    "h": 281.2
  },
  "luminance": 0.07376
}

Semantic roles & 50–950 ramp

primary
#4A2ACA
secondary
#C0D080
accent
#E93FC7
background
#F9F6FD
surface
#F2EBFB
border
#CCC6D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #4A2ACA

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

Preview Lab → · Contrast checker → · Palette generator →

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