#4A2FA1#4A2FA1

#4A2FA1 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.1% C 0.173 H 287.0°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#4A2FA1
RGBrgb(74, 47, 161)
HSLhsl(254, 55%, 41%)
HSVhsv(254, 71%, 63%)
CMYKcmyk(54%, 70.8%, 0%, 36.9%)
CIE-LABlab(29.57, 41.75, -57.57)
CIE-LCHlch(29.57, 71.12, 305.95°)
OKLaboklab(41.11% 0.0506 -0.1655)
OKLCHoklch(41.11% 0.173 287)
XYZxyz(10.2717, 6.0616, 34.3401)
Luminance0.0606 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2FA1 #86A12F
analogous
#2F4DA1 #4A2FA1 #832FA1
triadic
#4A2FA1 #A14A2F #2FA14A
tetradic
#4A2FA1 #A12F4D #86A12F #2FA183
square
#4A2FA1 #A12F4D #86A12F #2FA183
split-complementary
#4A2FA1 #A1832F #4DA12F
monochromatic
#1E1342 #342172 #4A2FA1 #6445C9 #8B74D6

Accessibility & contrast

On white

9.49
#4A2FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#4A2FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2FA1
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2FA1#FFFFFF#000000##FFFFFF
##4A2FA11.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A4
Deuteranopia (green-blind)
#00429F
Tritanopia (blue-blind)
#274D64
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4a2fa1;
/* rgb */ color: rgb(74, 47, 161);
/* oklch */ color: oklch(41.1% 0.173 287.0);
Tailwind
colors: {
  custom: {
    50: '#856abe',
    500: '#4a2fa1',
    950: '#000000',
  },
}
SCSS
$custom: #4a2fa1;
$custom-light: #856abe;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2fa1",
  "rgb": {
    "r": 74,
    "g": 47,
    "b": 161
  },
  "hsl": {
    "h": 254.211,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.41105,
    "c": 0.17301,
    "h": 287
  },
  "luminance": 0.06062
}

Semantic roles & 50–950 ramp

primary
#4A2FA1
secondary
#ABBE6E
accent
#DE4ABB
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4A2FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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