#4A2AAE#4A2AAE

#4A2AAE is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.7% C 0.194 H 285.4°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#4A2AAE
RGBrgb(74, 42, 174)
HSLhsl(255, 61%, 42%)
HSVhsv(255, 76%, 68%)
CMYKcmyk(57.5%, 75.9%, 0%, 31.8%)
CIE-LABlab(29.83, 48.24, -64.97)
CIE-LCHlch(29.83, 80.92, 306.59°)
OKLaboklab(41.66% 0.0517 -0.1871)
OKLCHoklch(41.66% 0.194 285.4)
XYZxyz(11.2897, 6.1671, 40.6317)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2AAE #8EAE2A
analogous
#2A4CAE #4A2AAE #8C2AAE
triadic
#4A2AAE #AE4A2A #2AAE4A
tetradic
#4A2AAE #AE2A4C #8EAE2A #2AAE8C
square
#4A2AAE #AE2A4C #8EAE2A #2AAE8C
split-complementary
#4A2AAE #AE8C2A #4CAE2A
monochromatic
#20124B #351E7D #4A2AAE #6643D2 #8E75DE

Accessibility & contrast

On white

9.40
#4A2AAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A2AAE
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2AAE#FFFFFF#000000##FFFFFF
##4A2AAE1.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB2
Deuteranopia (green-blind)
#0042AC
Tritanopia (blue-blind)
#174F6A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4a2aae;
/* rgb */ color: rgb(74, 42, 174);
/* oklch */ color: oklch(41.7% 0.194 285.4);
Tailwind
colors: {
  custom: {
    50: '#8867c7',
    500: '#4a2aae',
    950: '#000000',
  },
}
SCSS
$custom: #4a2aae;
$custom-light: #8867c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2aae",
  "rgb": {
    "r": 74,
    "g": 42,
    "b": 174
  },
  "hsl": {
    "h": 254.545,
    "s": 61.111,
    "l": 42.353
  },
  "oklch": {
    "l": 0.41658,
    "c": 0.1941,
    "h": 285.4
  },
  "luminance": 0.06168
}

Semantic roles & 50–950 ramp

primary
#4A2AAE
secondary
#B0C56F
accent
#E444BD
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0613
muted
#7D7A82

Preview Lab

Preview with #4A2AAE

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

Preview Lab → · Contrast checker → · Palette generator →

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