#4A2EC7#4A2EC7

#4A2EC7 is a dark, highly saturated violet. Relative luminance 0.075; OKLCH L 44.6% C 0.219 H 281.2°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#4A2EC7
RGBrgb(74, 46, 199)
HSLhsl(251, 62%, 48%)
HSVhsv(251, 77%, 78%)
CMYKcmyk(62.8%, 76.9%, 0%, 22%)
CIE-LABlab(32.99, 53.57, -74.56)
CIE-LCHlch(32.99, 91.81, 305.70°)
OKLaboklab(44.61% 0.0424 -0.2151)
OKLCHoklch(44.61% 0.219 281.2)
XYZxyz(14.1066, 7.5323, 54.7323)
Luminance0.0753 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2EC7 #ABC72E
analogous
#2E5FC7 #4A2EC7 #962EC7
triadic
#4A2EC7 #C74A2E #2EC74A
tetradic
#4A2EC7 #C72E5F #ABC72E #2EC796
square
#4A2EC7 #C72E5F #ABC72E #2EC796
split-complementary
#4A2EC7 #C7962E #5FC72E
monochromatic
#251764 #382395 #4A2EC7 #7159D9 #9B8BE4

Accessibility & contrast

On white

8.38
#4A2EC7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#4A2EC7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2EC7
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2EC7#FFFFFF#000000##FFFFFF
##4A2EC71.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053CB
Deuteranopia (green-blind)
#0048C4
Tritanopia (blue-blind)
#005B79
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4a2ec7;
/* rgb */ color: rgb(74, 46, 199);
/* oklch */ color: oklch(44.6% 0.219 281.2);
Tailwind
colors: {
  custom: {
    50: '#8c6bd9',
    500: '#4a2ec7',
    950: '#000000',
  },
}
SCSS
$custom: #4a2ec7;
$custom-light: #8c6bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2ec7",
  "rgb": {
    "r": 74,
    "g": 46,
    "b": 199
  },
  "hsl": {
    "h": 250.98,
    "s": 62.449,
    "l": 48.039
  },
  "oklch": {
    "l": 0.44614,
    "c": 0.21927,
    "h": 281.2
  },
  "luminance": 0.07533
}

Semantic roles & 50–950 ramp

primary
#4A2EC7
secondary
#C0CE83
accent
#E642C8
background
#F9F6FD
surface
#F2EBFB
border
#CCC6D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #4A2EC7

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

Preview Lab → · Contrast checker → · Palette generator →

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