#4A2ECC#4A2ECC

#4A2ECC is a mid, highly saturated violet. Relative luminance 0.078; OKLCH L 45.1% C 0.225 H 280.5°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#4A2ECC
RGBrgb(74, 46, 204)
HSLhsl(251, 63%, 49%)
HSVhsv(251, 77%, 80%)
CMYKcmyk(63.7%, 77.5%, 0%, 20%)
CIE-LABlab(33.50, 55.02, -76.64)
CIE-LCHlch(33.50, 94.35, 305.68°)
OKLaboklab(45.12% 0.0411 -0.2212)
OKLCHoklch(45.12% 0.225 280.5)
XYZxyz(14.6967, 7.7683, 57.8400)
Luminance0.0777 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2ECC #B0CC2E
analogous
#2E61CC #4A2ECC #992ECC
triadic
#4A2ECC #CC4A2E #2ECC4A
tetradic
#4A2ECC #CC2E61 #B0CC2E #2ECC99
square
#4A2ECC #CC2E61 #B0CC2E #2ECC99
split-complementary
#4A2ECC #CC992E #61CC2E
monochromatic
#261768 #38239A #4A2ECC #735DDA #9E8FE6

Accessibility & contrast

On white

8.22
#4A2ECC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#4A2ECC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2ECC
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2ECC#FFFFFF#000000##FFFFFF
##4A2ECC1.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054D0
Deuteranopia (green-blind)
#0049C9
Tritanopia (blue-blind)
#005D7C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4a2ecc;
/* rgb */ color: rgb(74, 46, 204);
/* oklch */ color: oklch(45.1% 0.225 280.5);
Tailwind
colors: {
  custom: {
    50: '#8d6bdd',
    500: '#4a2ecc',
    950: '#000000',
  },
}
SCSS
$custom: #4a2ecc;
$custom-light: #8d6bdd;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2ecc",
  "rgb": {
    "r": 74,
    "g": 46,
    "b": 204
  },
  "hsl": {
    "h": 250.633,
    "s": 63.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.45119,
    "c": 0.22498,
    "h": 280.5
  },
  "luminance": 0.07769
}

Semantic roles & 50–950 ramp

primary
#4A2ECC
secondary
#C3D086
accent
#E642C9
background
#F9F6FD
surface
#F2EBFB
border
#CCC6D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #4A2ECC

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

Preview Lab → · Contrast checker → · Palette generator →

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