#4A2FAA#4A2FAA

#4A2FAA is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.9% C 0.184 H 285.4°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#4A2FAA
RGBrgb(74, 47, 170)
HSLhsl(253, 57%, 43%)
HSVhsv(253, 72%, 67%)
CMYKcmyk(56.5%, 72.4%, 0%, 33.3%)
CIE-LABlab(30.38, 44.45, -61.68)
CIE-LCHlch(30.38, 76.03, 305.78°)
OKLaboklab(41.93% 0.0488 -0.1775)
OKLCHoklch(41.93% 0.184 285.4)
XYZxyz(11.0941, 6.3905, 38.6713)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2FAA #8FAA2F
analogous
#2F51AA #4A2FAA #882FAA
triadic
#4A2FAA #AA4A2F #2FAA4A
tetradic
#4A2FAA #AA2F51 #8FAA2F #2FAA88
square
#4A2FAA #AA2F51 #8FAA2F #2FAA88
split-complementary
#4A2FAA #AA882F #51AA2F
monochromatic
#20144A #35227A #4A2FAA #6649CD #8F79DA

Accessibility & contrast

On white

9.22
#4A2FAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#4A2FAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2FAA
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2FAA#FFFFFF#000000##FFFFFF
##4A2FAA1.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAE
Deuteranopia (green-blind)
#0044A8
Tritanopia (blue-blind)
#1C5069
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4a2faa;
/* rgb */ color: rgb(74, 47, 170);
/* oklch */ color: oklch(41.9% 0.184 285.4);
Tailwind
colors: {
  custom: {
    50: '#876ac4',
    500: '#4a2faa',
    950: '#000000',
  },
}
SCSS
$custom: #4a2faa;
$custom-light: #876ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2faa",
  "rgb": {
    "r": 74,
    "g": 47,
    "b": 170
  },
  "hsl": {
    "h": 253.171,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.4193,
    "c": 0.18406,
    "h": 285.4
  },
  "luminance": 0.06391
}

Semantic roles & 50–950 ramp

primary
#4A2FAA
secondary
#B1C272
accent
#E048BF
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4A2FAA

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

Preview Lab → · Contrast checker → · Palette generator →

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