#4A2BAB#4A2BAB

#4A2BAB is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.5% C 0.190 H 285.8°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#4A2BAB
RGBrgb(74, 43, 171)
HSLhsl(255, 60%, 42%)
HSVhsv(255, 75%, 67%)
CMYKcmyk(56.7%, 74.9%, 0%, 32.9%)
CIE-LABlab(29.72, 46.86, -63.35)
CIE-LCHlch(29.72, 78.80, 306.49°)
OKLaboklab(41.5% 0.0517 -0.1824)
OKLCHoklch(41.5% 0.19 285.8)
XYZxyz(11.0364, 6.1232, 39.1205)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2BAB #8CAB2B
analogous
#2B4CAB #4A2BAB #8A2BAB
triadic
#4A2BAB #AB4A2B #2BAB4A
tetradic
#4A2BAB #AB2B4C #8CAB2B #2BAB8A
square
#4A2BAB #AB2B4C #8CAB2B #2BAB8A
split-complementary
#4A2BAB #AB8A2B #4CAB2B
monochromatic
#201249 #351F7A #4A2BAB #6543D0 #8D74DC

Accessibility & contrast

On white

9.44
#4A2BAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#4A2BAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2BAB
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2BAB#FFFFFF#000000##FFFFFF
##4A2BAB1.009.442.229.44
#FFFFFF9.441.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AF
Deuteranopia (green-blind)
#0042A9
Tritanopia (blue-blind)
#1C4F69
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4a2bab;
/* rgb */ color: rgb(74, 43, 171);
/* oklch */ color: oklch(41.5% 0.190 285.8);
Tailwind
colors: {
  custom: {
    50: '#8768c5',
    500: '#4a2bab',
    950: '#000000',
  },
}
SCSS
$custom: #4a2bab;
$custom-light: #8768c5;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2bab",
  "rgb": {
    "r": 74,
    "g": 43,
    "b": 171
  },
  "hsl": {
    "h": 254.531,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.41495,
    "c": 0.18955,
    "h": 285.8
  },
  "luminance": 0.06124
}

Semantic roles & 50–950 ramp

primary
#4A2BAB
secondary
#AFC46E
accent
#E345BD
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4A2BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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