#4A2BA1#4A2BA1

#4A2BA1 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.6% C 0.178 H 287.7°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#4A2BA1
RGBrgb(74, 43, 161)
HSLhsl(256, 58%, 40%)
HSVhsv(256, 73%, 63%)
CMYKcmyk(54%, 73.3%, 0%, 36.9%)
CIE-LABlab(28.79, 43.92, -58.85)
CIE-LCHlch(28.79, 73.43, 306.73°)
OKLaboklab(40.55% 0.0541 -0.1692)
OKLCHoklch(40.55% 0.178 287.7)
XYZxyz(10.1190, 5.7563, 34.2892)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2BA1 #82A12B
analogous
#2B47A1 #4A2BA1 #852BA1
triadic
#4A2BA1 #A14A2B #2BA14A
tetradic
#4A2BA1 #A12B47 #82A12B #2BA185
square
#4A2BA1 #A12B47 #82A12B #2BA185
split-complementary
#4A2BA1 #A1852B #47A12B
monochromatic
#1E1140 #341E71 #4A2BA1 #633ECB #8A6ED8

Accessibility & contrast

On white

9.76
#4A2BA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#4A2BA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2BA1
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2BA1#FFFFFF#000000##FFFFFF
##4A2BA11.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.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: #4a2ba1;
/* rgb */ color: rgb(74, 43, 161);
/* oklch */ color: oklch(40.6% 0.178 287.7);
Tailwind
colors: {
  custom: {
    50: '#8667be',
    500: '#4a2ba1',
    950: '#000000',
  },
}
SCSS
$custom: #4a2ba1;
$custom-light: #8667be;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2ba1",
  "rgb": {
    "r": 74,
    "g": 43,
    "b": 161
  },
  "hsl": {
    "h": 255.763,
    "s": 57.843,
    "l": 40
  },
  "oklch": {
    "l": 0.40552,
    "c": 0.17761,
    "h": 287.7
  },
  "luminance": 0.05757
}

Semantic roles & 50–950 ramp

primary
#4A2BA1
secondary
#A8BF69
accent
#E147B9
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4A2BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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