#4A2AB3#4A2AB3

#4A2AB3 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.1% C 0.200 H 284.6°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#4A2AB3
RGBrgb(74, 42, 179)
HSLhsl(254, 62%, 43%)
HSVhsv(254, 77%, 70%)
CMYKcmyk(58.7%, 76.5%, 0%, 29.8%)
CIE-LABlab(30.32, 49.69, -67.16)
CIE-LCHlch(30.32, 83.54, 306.50°)
OKLaboklab(42.15% 0.0503 -0.1935)
OKLCHoklch(42.15% 0.2 284.6)
XYZxyz(11.7862, 6.3657, 43.2467)
Luminance0.0637 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2AB3 #93B32A
analogous
#2A4EB3 #4A2AB3 #8E2AB3
triadic
#4A2AB3 #B34A2A #2AB34A
tetradic
#4A2AB3 #B32A4E #93B32A #2AB38E
square
#4A2AB3 #B32A4E #93B32A #2AB38E
split-complementary
#4A2AB3 #B38E2A #4EB32A
monochromatic
#211350 #361E81 #4A2AB3 #6746D4 #9078DF

Accessibility & contrast

On white

9.24
#4A2AB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A2AB3
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2AB3#FFFFFF#000000##FFFFFF
##4A2AB31.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB7
Deuteranopia (green-blind)
#0043B1
Tritanopia (blue-blind)
#0C516D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4a2ab3;
/* rgb */ color: rgb(74, 42, 179);
/* oklch */ color: oklch(42.1% 0.200 284.6);
Tailwind
colors: {
  custom: {
    50: '#8968cb',
    500: '#4a2ab3',
    950: '#000000',
  },
}
SCSS
$custom: #4a2ab3;
$custom-light: #8968cb;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2ab3",
  "rgb": {
    "r": 74,
    "g": 42,
    "b": 179
  },
  "hsl": {
    "h": 254.015,
    "s": 61.991,
    "l": 43.333
  },
  "oklch": {
    "l": 0.42147,
    "c": 0.19993,
    "h": 284.6
  },
  "luminance": 0.06366
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4A2AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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