#4A2EA5#4A2EA5

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

Color values

HEX#4A2EA5
RGBrgb(74, 46, 165)
HSLhsl(254, 56%, 41%)
HSVhsv(254, 72%, 65%)
CMYKcmyk(55.2%, 72.1%, 0%, 35.3%)
CIE-LABlab(29.73, 43.50, -59.73)
CIE-LCHlch(29.73, 73.89, 306.06°)
OKLaboklab(41.33% 0.0506 -0.1718)
OKLCHoklch(41.33% 0.179 286.4)
XYZxyz(10.5905, 6.1259, 36.2144)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2EA5 #89A52E
analogous
#2E4EA5 #4A2EA5 #862EA5
triadic
#4A2EA5 #A54A2E #2EA54A
tetradic
#4A2EA5 #A52E4E #89A52E #2EA586
square
#4A2EA5 #A52E4E #89A52E #2EA586
split-complementary
#4A2EA5 #A5862E #4EA52E
monochromatic
#1F1345 #352175 #4A2EA5 #6545CB #8C75D8

Accessibility & contrast

On white

9.44
#4A2EA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A2EA5
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2EA5#FFFFFF#000000##FFFFFF
##4A2EA51.009.442.239.44
#FFFFFF9.441.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A9
Deuteranopia (green-blind)
#0043A3
Tritanopia (blue-blind)
#234E66
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4a2ea5;
/* rgb */ color: rgb(74, 46, 165);
/* oklch */ color: oklch(41.3% 0.179 286.4);
Tailwind
colors: {
  custom: {
    50: '#8669c1',
    500: '#4a2ea5',
    950: '#000000',
  },
}
SCSS
$custom: #4a2ea5;
$custom-light: #8669c1;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2ea5",
  "rgb": {
    "r": 74,
    "g": 46,
    "b": 165
  },
  "hsl": {
    "h": 254.118,
    "s": 56.398,
    "l": 41.373
  },
  "oklch": {
    "l": 0.4133,
    "c": 0.17909,
    "h": 286.4
  },
  "luminance": 0.06126
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4A2EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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