#4A2BAC#4A2BAC

#4A2BAC is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.6% C 0.191 H 285.6°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#4A2BAC
RGBrgb(74, 43, 172)
HSLhsl(254, 60%, 42%)
HSVhsv(254, 75%, 67%)
CMYKcmyk(57%, 75%, 0%, 32.5%)
CIE-LABlab(29.82, 47.15, -63.80)
CIE-LCHlch(29.82, 79.33, 306.47°)
OKLaboklab(41.59% 0.0514 -0.1837)
OKLCHoklch(41.59% 0.191 285.6)
XYZxyz(11.1321, 6.1615, 39.6244)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2BAC #8DAC2B
analogous
#2B4CAC #4A2BAC #8B2BAC
triadic
#4A2BAC #AC4A2B #2BAC4A
tetradic
#4A2BAC #AC2B4C #8DAC2B #2BAC8B
square
#4A2BAC #AC2B4C #8DAC2B #2BAC8B
split-complementary
#4A2BAC #AC8B2B #4CAC2B
monochromatic
#20134A #351F7B #4A2BAC #6644D0 #8E75DC

Accessibility & contrast

On white

9.41
#4A2BAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#4A2BAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2BAC
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2BAC#FFFFFF#000000##FFFFFF
##4A2BAC1.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB0
Deuteranopia (green-blind)
#0042AA
Tritanopia (blue-blind)
#1A4F69
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4a2bac;
/* rgb */ color: rgb(74, 43, 172);
/* oklch */ color: oklch(41.6% 0.191 285.6);
Tailwind
colors: {
  custom: {
    50: '#8868c6',
    500: '#4a2bac',
    950: '#000000',
  },
}
SCSS
$custom: #4a2bac;
$custom-light: #8868c6;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2bac",
  "rgb": {
    "r": 74,
    "g": 43,
    "b": 172
  },
  "hsl": {
    "h": 254.419,
    "s": 60,
    "l": 42.157
  },
  "oklch": {
    "l": 0.41591,
    "c": 0.19074,
    "h": 285.6
  },
  "luminance": 0.06162
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4A2BAC

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

Preview Lab → · Contrast checker → · Palette generator →

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