#4A2FA3#4A2FA3

#4A2FA3 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.3% C 0.175 H 286.6°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#4A2FA3
RGBrgb(74, 47, 163)
HSLhsl(254, 55%, 41%)
HSVhsv(254, 71%, 64%)
CMYKcmyk(54.6%, 71.2%, 0%, 36.1%)
CIE-LABlab(29.74, 42.35, -58.49)
CIE-LCHlch(29.74, 72.22, 305.91°)
OKLaboklab(41.29% 0.0502 -0.1682)
OKLCHoklch(41.29% 0.175 286.6)
XYZxyz(10.4494, 6.1327, 35.2763)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2FA3 #88A32F
analogous
#2F4EA3 #4A2FA3 #842FA3
triadic
#4A2FA3 #A34A2F #2FA34A
tetradic
#4A2FA3 #A32F4E #88A32F #2FA384
square
#4A2FA3 #A32F4E #88A32F #2FA384
split-complementary
#4A2FA3 #A3842F #4EA32F
monochromatic
#1F1444 #342173 #4A2FA3 #6446CA #8C75D7

Accessibility & contrast

On white

9.43
#4A2FA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A2FA3
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2FA3#FFFFFF#000000##FFFFFF
##4A2FA31.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A6
Deuteranopia (green-blind)
#0043A1
Tritanopia (blue-blind)
#254D65
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4a2fa3;
/* rgb */ color: rgb(74, 47, 163);
/* oklch */ color: oklch(41.3% 0.175 286.6);
Tailwind
colors: {
  custom: {
    50: '#866abf',
    500: '#4a2fa3',
    950: '#000000',
  },
}
SCSS
$custom: #4a2fa3;
$custom-light: #866abf;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2fa3",
  "rgb": {
    "r": 74,
    "g": 47,
    "b": 163
  },
  "hsl": {
    "h": 253.966,
    "s": 55.238,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41286,
    "c": 0.17549,
    "h": 286.6
  },
  "luminance": 0.06133
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4A2FA3

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

Preview Lab → · Contrast checker → · Palette generator →

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