#4A2AA6#4A2AA6

#4A2AA6 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.9% C 0.185 H 286.9°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#4A2AA6
RGBrgb(74, 42, 166)
HSLhsl(255, 60%, 41%)
HSVhsv(255, 75%, 65%)
CMYKcmyk(55.4%, 74.7%, 0%, 34.9%)
CIE-LABlab(29.07, 45.91, -61.42)
CIE-LCHlch(29.07, 76.68, 306.78°)
OKLaboklab(40.89% 0.0537 -0.1767)
OKLCHoklch(40.89% 0.185 286.9)
XYZxyz(10.5329, 5.8644, 36.6459)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2AA6 #86A62A
analogous
#2A48A6 #4A2AA6 #882AA6
triadic
#4A2AA6 #A64A2A #2AA64A
tetradic
#4A2AA6 #A62A48 #86A62A #2AA688
square
#4A2AA6 #A62A48 #86A62A #2AA688
split-complementary
#4A2AA6 #A6882A #48A62A
monochromatic
#1E1144 #341E75 #4A2AA6 #643FCE #8B70DB

Accessibility & contrast

On white

9.66
#4A2AA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#4A2AA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2AA6
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2AA6#FFFFFF#000000##FFFFFF
##4A2AA61.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AA
Deuteranopia (green-blind)
#0041A4
Tritanopia (blue-blind)
#224C66
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4a2aa6;
/* rgb */ color: rgb(74, 42, 166);
/* oklch */ color: oklch(40.9% 0.185 286.9);
Tailwind
colors: {
  custom: {
    50: '#8767c2',
    500: '#4a2aa6',
    950: '#000000',
  },
}
SCSS
$custom: #4a2aa6;
$custom-light: #8767c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2aa6",
  "rgb": {
    "r": 74,
    "g": 42,
    "b": 166
  },
  "hsl": {
    "h": 255.484,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.4089,
    "c": 0.18468,
    "h": 286.9
  },
  "luminance": 0.05865
}

Semantic roles & 50–950 ramp

primary
#4A2AA6
secondary
#ABC26A
accent
#E345BA
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4A2AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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