#4A2AB7#4A2AB7

#4A2AB7 is a dark, highly saturated violet. Relative luminance 0.065; OKLCH L 42.5% C 0.205 H 283.9°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#4A2AB7
RGBrgb(74, 42, 183)
HSLhsl(254, 63%, 44%)
HSVhsv(254, 77%, 72%)
CMYKcmyk(59.6%, 77%, 0%, 28.2%)
CIE-LABlab(30.71, 50.85, -68.89)
CIE-LCHlch(30.71, 85.62, 306.43°)
OKLaboklab(42.54% 0.0492 -0.1985)
OKLCHoklch(42.54% 0.205 283.9)
XYZxyz(12.1966, 6.5299, 45.4083)
Luminance0.0653 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2AB7 #97B72A
analogous
#2A51B7 #4A2AB7 #912AB7
triadic
#4A2AB7 #B74A2A #2AB74A
tetradic
#4A2AB7 #B72A51 #97B72A #2AB791
square
#4A2AB7 #B72A51 #97B72A #2AB791
split-complementary
#4A2AB7 #B7912A #51B72A
monochromatic
#221353 #361F85 #4A2AB7 #6949D5 #927BE1

Accessibility & contrast

On white

9.11
#4A2AB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#4A2AB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2AB7
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2AB7#FFFFFF#000000##FFFFFF
##4A2AB71.009.112.319.11
#FFFFFF9.111.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CBB
Deuteranopia (green-blind)
#0044B4
Tritanopia (blue-blind)
#00536F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4a2ab7;
/* rgb */ color: rgb(74, 42, 183);
/* oklch */ color: oklch(42.5% 0.205 283.9);
Tailwind
colors: {
  custom: {
    50: '#8a68ce',
    500: '#4a2ab7',
    950: '#000000',
  },
}
SCSS
$custom: #4a2ab7;
$custom-light: #8a68ce;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2ab7",
  "rgb": {
    "r": 74,
    "g": 42,
    "b": 183
  },
  "hsl": {
    "h": 253.617,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.42542,
    "c": 0.20456,
    "h": 283.9
  },
  "luminance": 0.06531
}

Semantic roles & 50–950 ramp

primary
#4A2AB7
secondary
#B6C974
accent
#E642C1
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0614
muted
#7E7A82

Preview Lab

Preview with #4A2AB7

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

Preview Lab → · Contrast checker → · Palette generator →

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