#4A2AB1#4A2AB1

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

Color values

HEX#4A2AB1
RGBrgb(74, 42, 177)
HSLhsl(254, 62%, 43%)
HSVhsv(254, 76%, 69%)
CMYKcmyk(58.2%, 76.3%, 0%, 30.6%)
CIE-LABlab(30.12, 49.11, -66.29)
CIE-LCHlch(30.12, 82.50, 306.53°)
OKLaboklab(41.95% 0.0509 -0.1909)
OKLCHoklch(41.95% 0.198 284.9)
XYZxyz(11.5854, 6.2854, 42.1892)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2AB1 #91B12A
analogous
#2A4EB1 #4A2AB1 #8D2AB1
triadic
#4A2AB1 #B14A2A #2AB14A
tetradic
#4A2AB1 #B12A4E #91B12A #2AB18D
square
#4A2AB1 #B12A4E #91B12A #2AB18D
split-complementary
#4A2AB1 #B18D2A #4EB12A
monochromatic
#21134E #351E80 #4A2AB1 #6745D3 #8F77DF

Accessibility & contrast

On white

9.30
#4A2AB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#4A2AB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2AB1
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2AB1#FFFFFF#000000##FFFFFF
##4A2AB11.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB5
Deuteranopia (green-blind)
#0043AF
Tritanopia (blue-blind)
#11506C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4a2ab1;
/* rgb */ color: rgb(74, 42, 177);
/* oklch */ color: oklch(42.0% 0.198 284.9);
Tailwind
colors: {
  custom: {
    50: '#8968ca',
    500: '#4a2ab1',
    950: '#000000',
  },
}
SCSS
$custom: #4a2ab1;
$custom-light: #8968ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2ab1",
  "rgb": {
    "r": 74,
    "g": 42,
    "b": 177
  },
  "hsl": {
    "h": 254.222,
    "s": 61.644,
    "l": 42.941
  },
  "oklch": {
    "l": 0.41951,
    "c": 0.19761,
    "h": 284.9
  },
  "luminance": 0.06286
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4A2AB1

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

Preview Lab → · Contrast checker → · Palette generator →

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