#4A2EAC#4A2EAC

#4A2EAC is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.0% C 0.188 H 285.2°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#4A2EAC
RGBrgb(74, 46, 172)
HSLhsl(253, 58%, 43%)
HSVhsv(253, 73%, 67%)
CMYKcmyk(57%, 73.3%, 0%, 32.5%)
CIE-LABlab(30.37, 45.59, -62.89)
CIE-LCHlch(30.37, 77.67, 305.94°)
OKLaboklab(41.98% 0.0491 -0.181)
OKLCHoklch(41.98% 0.188 285.2)
XYZxyz(11.2452, 6.3877, 39.6621)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2EAC #90AC2E
analogous
#2E51AC #4A2EAC #892EAC
triadic
#4A2EAC #AC4A2E #2EAC4A
tetradic
#4A2EAC #AC2E51 #90AC2E #2EAC89
square
#4A2EAC #AC2E51 #90AC2E #2EAC89
split-complementary
#4A2EAC #AC892E #51AC2E
monochromatic
#20144B #35217C #4A2EAC #6749CE #8F79DB

Accessibility & contrast

On white

9.22
#4A2EAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#4A2EAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2EAC
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2EAC#FFFFFF#000000##FFFFFF
##4A2EAC1.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB0
Deuteranopia (green-blind)
#0044AA
Tritanopia (blue-blind)
#1A506A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4a2eac;
/* rgb */ color: rgb(74, 46, 172);
/* oklch */ color: oklch(42.0% 0.188 285.2);
Tailwind
colors: {
  custom: {
    50: '#876ac6',
    500: '#4a2eac',
    950: '#000000',
  },
}
SCSS
$custom: #4a2eac;
$custom-light: #876ac6;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2eac",
  "rgb": {
    "r": 74,
    "g": 46,
    "b": 172
  },
  "hsl": {
    "h": 253.333,
    "s": 57.798,
    "l": 42.745
  },
  "oklch": {
    "l": 0.41982,
    "c": 0.18758,
    "h": 285.2
  },
  "luminance": 0.06388
}

Semantic roles & 50–950 ramp

primary
#4A2EAC
secondary
#B1C372
accent
#E147BF
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4A2EAC

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

Preview Lab → · Contrast checker → · Palette generator →

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