#4A2BA2#4A2BA2

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

Color values

HEX#4A2BA2
RGBrgb(74, 43, 162)
HSLhsl(256, 58%, 40%)
HSVhsv(256, 73%, 64%)
CMYKcmyk(54.3%, 73.5%, 0%, 36.5%)
CIE-LABlab(28.88, 44.21, -59.30)
CIE-LCHlch(28.88, 73.97, 306.71°)
OKLaboklab(40.64% 0.0538 -0.1705)
OKLCHoklch(40.64% 0.179 287.5)
XYZxyz(10.2076, 5.7917, 34.7555)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2BA2 #83A22B
analogous
#2B48A2 #4A2BA2 #852BA2
triadic
#4A2BA2 #A24A2B #2BA24A
tetradic
#4A2BA2 #A22B48 #83A22B #2BA285
square
#4A2BA2 #A22B48 #83A22B #2BA285
split-complementary
#4A2BA2 #A2852B #48A22B
monochromatic
#1E1141 #341E72 #4A2BA2 #633ECC #8A6FD9

Accessibility & contrast

On white

9.73
#4A2BA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#4A2BA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2BA2
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2BA2#FFFFFF#000000##FFFFFF
##4A2BA21.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4a2ba2;
/* rgb */ color: rgb(74, 43, 162);
/* oklch */ color: oklch(40.6% 0.179 287.5);
Tailwind
colors: {
  custom: {
    50: '#8667bf',
    500: '#4a2ba2',
    950: '#000000',
  },
}
SCSS
$custom: #4a2ba2;
$custom-light: #8667bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2ba2",
  "rgb": {
    "r": 74,
    "g": 43,
    "b": 162
  },
  "hsl": {
    "h": 255.63,
    "s": 58.049,
    "l": 40.196
  },
  "oklch": {
    "l": 0.40645,
    "c": 0.17882,
    "h": 287.5
  },
  "luminance": 0.05792
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4A2BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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