#4A2AB2#4A2AB2

#4A2AB2 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.0% C 0.199 H 284.7°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#4A2AB2
RGBrgb(74, 42, 178)
HSLhsl(254, 62%, 43%)
HSVhsv(254, 76%, 70%)
CMYKcmyk(58.4%, 76.4%, 0%, 30.2%)
CIE-LABlab(30.22, 49.40, -66.72)
CIE-LCHlch(30.22, 83.02, 306.52°)
OKLaboklab(42.05% 0.0506 -0.1922)
OKLCHoklch(42.05% 0.199 284.7)
XYZxyz(11.6854, 6.3254, 42.7160)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2AB2 #92B22A
analogous
#2A4EB2 #4A2AB2 #8E2AB2
triadic
#4A2AB2 #B24A2A #2AB24A
tetradic
#4A2AB2 #B22A4E #92B22A #2AB28E
square
#4A2AB2 #B22A4E #92B22A #2AB28E
split-complementary
#4A2AB2 #B28E2A #4EB22A
monochromatic
#21134F #351E80 #4A2AB2 #6746D3 #9077DF

Accessibility & contrast

On white

9.27
#4A2AB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#4A2AB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2AB2
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2AB2#FFFFFF#000000##FFFFFF
##4A2AB21.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB6
Deuteranopia (green-blind)
#0043B0
Tritanopia (blue-blind)
#0F516D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4a2ab2;
/* rgb */ color: rgb(74, 42, 178);
/* oklch */ color: oklch(42.0% 0.199 284.7);
Tailwind
colors: {
  custom: {
    50: '#8968ca',
    500: '#4a2ab2',
    950: '#000000',
  },
}
SCSS
$custom: #4a2ab2;
$custom-light: #8968ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2ab2",
  "rgb": {
    "r": 74,
    "g": 42,
    "b": 178
  },
  "hsl": {
    "h": 254.118,
    "s": 61.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.42049,
    "c": 0.19877,
    "h": 284.7
  },
  "luminance": 0.06326
}

Semantic roles & 50–950 ramp

primary
#4A2AB2
secondary
#B3C771
accent
#E543BF
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4A2AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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