#4A2CA1#4A2CA1

#4A2CA1 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.7% C 0.176 H 287.5°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#4A2CA1
RGBrgb(74, 44, 161)
HSLhsl(255, 57%, 40%)
HSVhsv(255, 73%, 63%)
CMYKcmyk(54%, 72.7%, 0%, 36.9%)
CIE-LABlab(28.98, 43.39, -58.54)
CIE-LCHlch(28.98, 72.86, 306.55°)
OKLaboklab(40.69% 0.0532 -0.1683)
OKLCHoklch(40.69% 0.176 287.5)
XYZxyz(10.1558, 5.8299, 34.3015)
Luminance0.0583 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2CA1 #83A12C
analogous
#2C48A1 #4A2CA1 #852CA1
triadic
#4A2CA1 #A14A2C #2CA14A
tetradic
#4A2CA1 #A12C48 #83A12C #2CA185
square
#4A2CA1 #A12C48 #83A12C #2CA185
split-complementary
#4A2CA1 #A1852C #48A12C
monochromatic
#1E1241 #341F71 #4A2CA1 #6340CB #8A70D8

Accessibility & contrast

On white

9.70
#4A2CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A2CA1
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2CA1#FFFFFF#000000##FFFFFF
##4A2CA11.009.702.179.70
#FFFFFF9.701.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A4
Deuteranopia (green-blind)
#00419F
Tritanopia (blue-blind)
#274B63
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4a2ca1;
/* rgb */ color: rgb(74, 44, 161);
/* oklch */ color: oklch(40.7% 0.176 287.5);
Tailwind
colors: {
  custom: {
    50: '#8668be',
    500: '#4a2ca1',
    950: '#000000',
  },
}
SCSS
$custom: #4a2ca1;
$custom-light: #8668be;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2ca1",
  "rgb": {
    "r": 74,
    "g": 44,
    "b": 161
  },
  "hsl": {
    "h": 255.385,
    "s": 57.073,
    "l": 40.196
  },
  "oklch": {
    "l": 0.40687,
    "c": 0.17648,
    "h": 287.5
  },
  "luminance": 0.0583
}

Semantic roles & 50–950 ramp

primary
#4A2CA1
secondary
#A9BF6A
accent
#E047B9
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4A2CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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