#4A2AB6#4A2AB6

#4A2AB6 is a dark, highly saturated violet. Relative luminance 0.065; OKLCH L 42.4% C 0.203 H 284.1°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#4A2AB6
RGBrgb(74, 42, 182)
HSLhsl(254, 63%, 44%)
HSVhsv(254, 77%, 71%)
CMYKcmyk(59.3%, 76.9%, 0%, 28.6%)
CIE-LABlab(30.61, 50.56, -68.46)
CIE-LCHlch(30.61, 85.10, 306.45°)
OKLaboklab(42.44% 0.0495 -0.1973)
OKLCHoklch(42.44% 0.203 284.1)
XYZxyz(12.0929, 6.4884, 44.8621)
Luminance0.0649 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2AB6 #96B62A
analogous
#2A50B6 #4A2AB6 #902AB6
triadic
#4A2AB6 #B64A2A #2AB64A
tetradic
#4A2AB6 #B62A50 #96B62A #2AB690
square
#4A2AB6 #B62A50 #96B62A #2AB690
split-complementary
#4A2AB6 #B6902A #50B62A
monochromatic
#221353 #361F84 #4A2AB6 #6848D5 #917AE0

Accessibility & contrast

On white

9.14
#4A2AB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#4A2AB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2AB6
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2AB6#FFFFFF#000000##FFFFFF
##4A2AB61.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CBA
Deuteranopia (green-blind)
#0043B3
Tritanopia (blue-blind)
#02526F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4a2ab6;
/* rgb */ color: rgb(74, 42, 182);
/* oklch */ color: oklch(42.4% 0.203 284.1);
Tailwind
colors: {
  custom: {
    50: '#8968cd',
    500: '#4a2ab6',
    950: '#000000',
  },
}
SCSS
$custom: #4a2ab6;
$custom-light: #8968cd;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2ab6",
  "rgb": {
    "r": 74,
    "g": 42,
    "b": 182
  },
  "hsl": {
    "h": 253.714,
    "s": 62.5,
    "l": 43.922
  },
  "oklch": {
    "l": 0.42443,
    "c": 0.20341,
    "h": 284.1
  },
  "luminance": 0.06489
}

Semantic roles & 50–950 ramp

primary
#4A2AB6
secondary
#B5C873
accent
#E642C0
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0614
muted
#7E7A82

Preview Lab

Preview with #4A2AB6

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

Preview Lab → · Contrast checker → · Palette generator →

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