#4A2EAA#4A2EAA

#4A2EAA is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.8% C 0.185 H 285.5°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#4A2EAA
RGBrgb(74, 46, 170)
HSLhsl(254, 57%, 42%)
HSVhsv(254, 73%, 67%)
CMYKcmyk(56.5%, 72.9%, 0%, 33.3%)
CIE-LABlab(30.19, 44.99, -61.99)
CIE-LCHlch(30.19, 76.60, 305.97°)
OKLaboklab(41.79% 0.0496 -0.1784)
OKLCHoklch(41.79% 0.185 285.5)
XYZxyz(11.0545, 6.3115, 38.6582)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2EAA #8EAA2E
analogous
#2E50AA #4A2EAA #882EAA
triadic
#4A2EAA #AA4A2E #2EAA4A
tetradic
#4A2EAA #AA2E50 #8EAA2E #2EAA88
square
#4A2EAA #AA2E50 #8EAA2E #2EAA88
split-complementary
#4A2EAA #AA882E #50AA2E
monochromatic
#20144A #35217A #4A2EAA #6648CD #8E78DA

Accessibility & contrast

On white

9.28
#4A2EAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#4A2EAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2EAA
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2EAA#FFFFFF#000000##FFFFFF
##4A2EAA1.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAE
Deuteranopia (green-blind)
#0043A8
Tritanopia (blue-blind)
#1D5069
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4a2eaa;
/* rgb */ color: rgb(74, 46, 170);
/* oklch */ color: oklch(41.8% 0.185 285.5);
Tailwind
colors: {
  custom: {
    50: '#876ac4',
    500: '#4a2eaa',
    950: '#000000',
  },
}
SCSS
$custom: #4a2eaa;
$custom-light: #876ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2eaa",
  "rgb": {
    "r": 74,
    "g": 46,
    "b": 170
  },
  "hsl": {
    "h": 253.548,
    "s": 57.407,
    "l": 42.353
  },
  "oklch": {
    "l": 0.41794,
    "c": 0.18516,
    "h": 285.5
  },
  "luminance": 0.06312
}

Semantic roles & 50–950 ramp

primary
#4A2EAA
secondary
#B0C371
accent
#E147BE
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4A2EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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