#4A2CA2#4A2CA2

#4A2CA2 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.8% C 0.178 H 287.3°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#4A2CA2
RGBrgb(74, 44, 162)
HSLhsl(255, 57%, 40%)
HSVhsv(255, 73%, 64%)
CMYKcmyk(54.3%, 72.8%, 0%, 36.5%)
CIE-LABlab(29.07, 43.68, -58.99)
CIE-LCHlch(29.07, 73.41, 306.52°)
OKLaboklab(40.78% 0.053 -0.1696)
OKLCHoklch(40.78% 0.178 287.3)
XYZxyz(10.2444, 5.8653, 34.7677)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2CA2 #84A22C
analogous
#2C49A2 #4A2CA2 #852CA2
triadic
#4A2CA2 #A24A2C #2CA24A
tetradic
#4A2CA2 #A22C49 #84A22C #2CA285
square
#4A2CA2 #A22C49 #84A22C #2CA285
split-complementary
#4A2CA2 #A2852C #49A22C
monochromatic
#1E1242 #341F72 #4A2CA2 #6340CB #8B70D8

Accessibility & contrast

On white

9.66
#4A2CA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#4A2CA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2CA2
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2CA2#FFFFFF#000000##FFFFFF
##4A2CA21.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A5
Deuteranopia (green-blind)
#0041A0
Tritanopia (blue-blind)
#264C64
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4a2ca2;
/* rgb */ color: rgb(74, 44, 162);
/* oklch */ color: oklch(40.8% 0.178 287.3);
Tailwind
colors: {
  custom: {
    50: '#8668bf',
    500: '#4a2ca2',
    950: '#000000',
  },
}
SCSS
$custom: #4a2ca2;
$custom-light: #8668bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2ca2",
  "rgb": {
    "r": 74,
    "g": 44,
    "b": 162
  },
  "hsl": {
    "h": 255.254,
    "s": 57.282,
    "l": 40.392
  },
  "oklch": {
    "l": 0.40779,
    "c": 0.17769,
    "h": 287.3
  },
  "luminance": 0.05866
}

Semantic roles & 50–950 ramp

primary
#4A2CA2
secondary
#AABF6A
accent
#E147BA
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4A2CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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