#4A2AB0#4A2AB0

#4A2AB0 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.9% C 0.196 H 285.1°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#4A2AB0
RGBrgb(74, 42, 176)
HSLhsl(254, 61%, 43%)
HSVhsv(254, 76%, 69%)
CMYKcmyk(58%, 76.1%, 0%, 31%)
CIE-LABlab(30.02, 48.82, -65.85)
CIE-LCHlch(30.02, 81.97, 306.55°)
OKLaboklab(41.85% 0.0511 -0.1897)
OKLCHoklch(41.85% 0.196 285.1)
XYZxyz(11.4861, 6.2457, 41.6662)
Luminance0.0625 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2AB0 #90B02A
analogous
#2A4DB0 #4A2AB0 #8D2AB0
triadic
#4A2AB0 #B04A2A #2AB04A
tetradic
#4A2AB0 #B02A4D #90B02A #2AB08D
square
#4A2AB0 #B02A4D #90B02A #2AB08D
split-complementary
#4A2AB0 #B08D2A #4DB02A
monochromatic
#20124D #351E7F #4A2AB0 #6745D3 #8F76DE

Accessibility & contrast

On white

9.34
#4A2AB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#4A2AB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2AB0
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2AB0#FFFFFF#000000##FFFFFF
##4A2AB01.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB4
Deuteranopia (green-blind)
#0043AE
Tritanopia (blue-blind)
#13506B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4a2ab0;
/* rgb */ color: rgb(74, 42, 176);
/* oklch */ color: oklch(41.9% 0.196 285.1);
Tailwind
colors: {
  custom: {
    50: '#8868c9',
    500: '#4a2ab0',
    950: '#000000',
  },
}
SCSS
$custom: #4a2ab0;
$custom-light: #8868c9;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2ab0",
  "rgb": {
    "r": 74,
    "g": 42,
    "b": 176
  },
  "hsl": {
    "h": 254.328,
    "s": 61.468,
    "l": 42.745
  },
  "oklch": {
    "l": 0.41853,
    "c": 0.19644,
    "h": 285.1
  },
  "luminance": 0.06246
}

Semantic roles & 50–950 ramp

primary
#4A2AB0
secondary
#B1C670
accent
#E543BE
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4A2AB0

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

Preview Lab → · Contrast checker → · Palette generator →

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