#4A2AAB#4A2AAB

#4A2AAB is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.4% C 0.191 H 286.0°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#4A2AAB
RGBrgb(74, 42, 171)
HSLhsl(255, 61%, 42%)
HSVhsv(255, 75%, 67%)
CMYKcmyk(56.7%, 75.4%, 0%, 32.9%)
CIE-LABlab(29.54, 47.37, -63.65)
CIE-LCHlch(29.54, 79.34, 306.66°)
OKLaboklab(41.37% 0.0525 -0.1832)
OKLCHoklch(41.37% 0.191 286)
XYZxyz(11.0005, 6.0514, 39.1086)
Luminance0.0605 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2AAB #8BAB2A
analogous
#2A4BAB #4A2AAB #8B2AAB
triadic
#4A2AAB #AB4A2A #2AAB4A
tetradic
#4A2AAB #AB2A4B #8BAB2A #2AAB8B
square
#4A2AAB #AB2A4B #8BAB2A #2AAB8B
split-complementary
#4A2AAB #AB8B2A #4BAB2A
monochromatic
#1F1249 #351E7A #4A2AAB #6542D1 #8D73DD

Accessibility & contrast

On white

9.50
#4A2AAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#4A2AAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2AAB
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2AAB#FFFFFF#000000##FFFFFF
##4A2AAB1.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AF
Deuteranopia (green-blind)
#0042A9
Tritanopia (blue-blind)
#1C4E69
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4a2aab;
/* rgb */ color: rgb(74, 42, 171);
/* oklch */ color: oklch(41.4% 0.191 286.0);
Tailwind
colors: {
  custom: {
    50: '#8867c5',
    500: '#4a2aab',
    950: '#000000',
  },
}
SCSS
$custom: #4a2aab;
$custom-light: #8867c5;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2aab",
  "rgb": {
    "r": 74,
    "g": 42,
    "b": 171
  },
  "hsl": {
    "h": 254.884,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41368,
    "c": 0.19059,
    "h": 286
  },
  "luminance": 0.06052
}

Semantic roles & 50–950 ramp

primary
#4A2AAB
secondary
#AEC46D
accent
#E444BC
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4A2AAB

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

Preview Lab → · Contrast checker → · Palette generator →

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