#4A2FA6#4A2FA6

#4A2FA6 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.6% C 0.179 H 286.1°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#4A2FA6
RGBrgb(74, 47, 166)
HSLhsl(254, 56%, 42%)
HSVhsv(254, 72%, 65%)
CMYKcmyk(55.4%, 71.7%, 0%, 34.9%)
CIE-LABlab(30.01, 43.25, -59.86)
CIE-LCHlch(30.01, 73.85, 305.85°)
OKLaboklab(41.56% 0.0496 -0.1722)
OKLCHoklch(41.56% 0.179 286.1)
XYZxyz(10.7214, 6.2415, 36.7088)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2FA6 #8BA62F
analogous
#2F50A6 #4A2FA6 #862FA6
triadic
#4A2FA6 #A64A2F #2FA64A
tetradic
#4A2FA6 #A62F50 #8BA62F #2FA686
square
#4A2FA6 #A62F50 #8BA62F #2FA686
split-complementary
#4A2FA6 #A6862F #50A62F
monochromatic
#1F1447 #352176 #4A2FA6 #6547CB #8D77D8

Accessibility & contrast

On white

9.34
#4A2FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#4A2FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2FA6
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2FA6#FFFFFF#000000##FFFFFF
##4A2FA61.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAA
Deuteranopia (green-blind)
#0043A4
Tritanopia (blue-blind)
#224F67
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4a2fa6;
/* rgb */ color: rgb(74, 47, 166);
/* oklch */ color: oklch(41.6% 0.179 286.1);
Tailwind
colors: {
  custom: {
    50: '#866ac1',
    500: '#4a2fa6',
    950: '#000000',
  },
}
SCSS
$custom: #4a2fa6;
$custom-light: #866ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2fa6",
  "rgb": {
    "r": 74,
    "g": 47,
    "b": 166
  },
  "hsl": {
    "h": 253.613,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41561,
    "c": 0.17918,
    "h": 286.1
  },
  "luminance": 0.06242
}

Semantic roles & 50–950 ramp

primary
#4A2FA6
secondary
#AEC170
accent
#DF49BD
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4A2FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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