#4A2EA6#4A2EA6

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

Color values

HEX#4A2EA6
RGBrgb(74, 46, 166)
HSLhsl(254, 57%, 42%)
HSVhsv(254, 72%, 65%)
CMYKcmyk(55.4%, 72.3%, 0%, 34.9%)
CIE-LABlab(29.82, 43.80, -60.18)
CIE-LCHlch(29.82, 74.43, 306.04°)
OKLaboklab(41.42% 0.0504 -0.1731)
OKLCHoklch(41.42% 0.18 286.2)
XYZxyz(10.6819, 6.1624, 36.6956)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2EA6 #8AA62E
analogous
#2E4EA6 #4A2EA6 #862EA6
triadic
#4A2EA6 #A64A2E #2EA64A
tetradic
#4A2EA6 #A62E4E #8AA62E #2EA686
square
#4A2EA6 #A62E4E #8AA62E #2EA686
split-complementary
#4A2EA6 #A6862E #4EA62E
monochromatic
#1F1346 #352176 #4A2EA6 #6546CC #8D76D9

Accessibility & contrast

On white

9.41
#4A2EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A2EA6
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2EA6#FFFFFF#000000##FFFFFF
##4A2EA61.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AA
Deuteranopia (green-blind)
#0043A4
Tritanopia (blue-blind)
#224E67
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4a2ea6;
/* rgb */ color: rgb(74, 46, 166);
/* oklch */ color: oklch(41.4% 0.180 286.2);
Tailwind
colors: {
  custom: {
    50: '#8669c1',
    500: '#4a2ea6',
    950: '#000000',
  },
}
SCSS
$custom: #4a2ea6;
$custom-light: #8669c1;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2ea6",
  "rgb": {
    "r": 74,
    "g": 46,
    "b": 166
  },
  "hsl": {
    "h": 254,
    "s": 56.604,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41422,
    "c": 0.18031,
    "h": 286.2
  },
  "luminance": 0.06163
}

Semantic roles & 50–950 ramp

primary
#4A2EA6
secondary
#AEC16F
accent
#E048BC
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4A2EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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