#4A2FA4#4A2FA4

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

Color values

HEX#4A2FA4
RGBrgb(74, 47, 164)
HSLhsl(254, 55%, 41%)
HSVhsv(254, 71%, 64%)
CMYKcmyk(54.9%, 71.3%, 0%, 35.7%)
CIE-LABlab(29.83, 42.65, -58.95)
CIE-LCHlch(29.83, 72.76, 305.89°)
OKLaboklab(41.38% 0.05 -0.1695)
OKLCHoklch(41.38% 0.177 286.4)
XYZxyz(10.5394, 6.1686, 35.7501)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2FA4 #89A42F
analogous
#2F4FA4 #4A2FA4 #852FA4
triadic
#4A2FA4 #A44A2F #2FA44A
tetradic
#4A2FA4 #A42F4F #89A42F #2FA485
square
#4A2FA4 #A42F4F #89A42F #2FA485
split-complementary
#4A2FA4 #A4852F #4FA42F
monochromatic
#1F1445 #352174 #4A2FA4 #6546CA #8C76D8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4A2FA4#FFFFFF#000000##FFFFFF
##4A2FA41.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)
#0049A7
Deuteranopia (green-blind)
#0043A2
Tritanopia (blue-blind)
#244E66
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4a2fa4;
/* rgb */ color: rgb(74, 47, 164);
/* oklch */ color: oklch(41.4% 0.177 286.4);
Tailwind
colors: {
  custom: {
    50: '#866ac0',
    500: '#4a2fa4',
    950: '#000000',
  },
}
SCSS
$custom: #4a2fa4;
$custom-light: #866ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2fa4",
  "rgb": {
    "r": 74,
    "g": 47,
    "b": 164
  },
  "hsl": {
    "h": 253.846,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41378,
    "c": 0.17672,
    "h": 286.4
  },
  "luminance": 0.06169
}

Semantic roles & 50–950 ramp

primary
#4A2FA4
secondary
#ADC06F
accent
#DF49BC
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4A2FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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