#4C2AE3#4C2AE3

#4C2AE3 is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 47.2% C 0.253 H 278.9°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#4C2AE3
RGBrgb(76, 42, 227)
HSLhsl(251, 77%, 53%)
HSVhsv(251, 81%, 89%)
CMYKcmyk(66.5%, 81.5%, 0%, 11%)
CIE-LABlab(35.47, 63.50, -86.63)
CIE-LCHlch(35.47, 107.41, 306.24°)
OKLaboklab(47.24% 0.0392 -0.2502)
OKLCHoklch(47.24% 0.253 278.9)
XYZxyz(17.6691, 8.7370, 73.4134)
Luminance0.0874 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2AE3 #C1E32A
analogous
#2A64E3 #4C2AE3 #A82AE3
triadic
#4C2AE3 #E34C2A #2AE34C
tetradic
#4C2AE3 #E32A64 #C1E32A #2AE3A8
square
#4C2AE3 #E32A64 #C1E32A #2AE3A8
split-complementary
#4C2AE3 #E3A82A #64E32A
monochromatic
#261182 #3518B8 #4C2AE3 #7960EA #A796F1

Accessibility & contrast

On white

7.64
#4C2AE3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#4C2AE3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2AE3
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2AE3#FFFFFF#000000##FFFFFF
##4C2AE31.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AE8
Deuteranopia (green-blind)
#004CE0
Tritanopia (blue-blind)
#006589
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4c2ae3;
/* rgb */ color: rgb(76, 42, 227);
/* oklch */ color: oklch(47.2% 0.253 278.9);
Tailwind
colors: {
  custom: {
    50: '#936bed',
    500: '#4c2ae3',
    950: '#000000',
  },
}
SCSS
$custom: #4c2ae3;
$custom-light: #936bed;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2ae3",
  "rgb": {
    "r": 76,
    "g": 42,
    "b": 227
  },
  "hsl": {
    "h": 251.027,
    "s": 76.763,
    "l": 52.745
  },
  "oklch": {
    "l": 0.47243,
    "c": 0.25322,
    "h": 278.9
  },
  "luminance": 0.08738
}

Semantic roles & 50–950 ramp

primary
#4C2AE3
secondary
#CEDC8C
accent
#F334D0
background
#FAF6FE
surface
#F3ECFD
border
#CDC7D5
text
#0F0717
muted
#7F7A85

Preview Lab

Preview with #4C2AE3

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

Preview Lab → · Contrast checker → · Palette generator →

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