#4A2AB5#4A2AB5

#4A2AB5 is a dark, highly saturated violet. Relative luminance 0.064; OKLCH L 42.3% C 0.202 H 284.3°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#4A2AB5
RGBrgb(74, 42, 181)
HSLhsl(254, 62%, 44%)
HSVhsv(254, 77%, 71%)
CMYKcmyk(59.1%, 76.8%, 0%, 29%)
CIE-LABlab(30.51, 50.27, -68.02)
CIE-LCHlch(30.51, 84.58, 306.47°)
OKLaboklab(42.34% 0.0498 -0.196)
OKLCHoklch(42.34% 0.202 284.3)
XYZxyz(11.9899, 6.4472, 44.3197)
Luminance0.0645 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2AB5 #95B52A
analogous
#2A4FB5 #4A2AB5 #8F2AB5
triadic
#4A2AB5 #B54A2A #2AB54A
tetradic
#4A2AB5 #B52A4F #95B52A #2AB58F
square
#4A2AB5 #B52A4F #95B52A #2AB58F
split-complementary
#4A2AB5 #B58F2A #4FB52A
monochromatic
#211352 #361E83 #4A2AB5 #6848D4 #9179E0

Accessibility & contrast

On white

9.17
#4A2AB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#4A2AB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2AB5
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2AB5#FFFFFF#000000##FFFFFF
##4A2AB51.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB9
Deuteranopia (green-blind)
#0043B2
Tritanopia (blue-blind)
#05526E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4a2ab5;
/* rgb */ color: rgb(74, 42, 181);
/* oklch */ color: oklch(42.3% 0.202 284.3);
Tailwind
colors: {
  custom: {
    50: '#8968cc',
    500: '#4a2ab5',
    950: '#000000',
  },
}
SCSS
$custom: #4a2ab5;
$custom-light: #8968cc;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2ab5",
  "rgb": {
    "r": 74,
    "g": 42,
    "b": 181
  },
  "hsl": {
    "h": 253.813,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.42344,
    "c": 0.20225,
    "h": 284.3
  },
  "luminance": 0.06448
}

Semantic roles & 50–950 ramp

primary
#4A2AB5
secondary
#B4C873
accent
#E542C0
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0614
muted
#7E7A82

Preview Lab

Preview with #4A2AB5

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

Preview Lab → · Contrast checker → · Palette generator →

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