#4A2BAD#4A2BAD

#4A2BAD is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.7% C 0.192 H 285.5°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#4A2BAD
RGBrgb(74, 43, 173)
HSLhsl(254, 60%, 42%)
HSVhsv(254, 75%, 68%)
CMYKcmyk(57.2%, 75.1%, 0%, 32.2%)
CIE-LABlab(29.91, 47.44, -64.24)
CIE-LCHlch(29.91, 79.86, 306.45°)
OKLaboklab(41.69% 0.0512 -0.185)
OKLCHoklch(41.69% 0.192 285.5)
XYZxyz(11.2285, 6.2001, 40.1321)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2BAD #8EAD2B
analogous
#2B4DAD #4A2BAD #8B2BAD
triadic
#4A2BAD #AD4A2B #2BAD4A
tetradic
#4A2BAD #AD2B4D #8EAD2B #2BAD8B
square
#4A2BAD #AD2B4D #8EAD2B #2BAD8B
split-complementary
#4A2BAD #AD8B2B #4DAD2B
monochromatic
#20134B #351F7C #4A2BAD #6645D1 #8E76DD

Accessibility & contrast

On white

9.37
#4A2BAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#4A2BAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2BAD
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2BAD#FFFFFF#000000##FFFFFF
##4A2BAD1.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB1
Deuteranopia (green-blind)
#0042AB
Tritanopia (blue-blind)
#184F6A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4a2bad;
/* rgb */ color: rgb(74, 43, 173);
/* oklch */ color: oklch(41.7% 0.192 285.5);
Tailwind
colors: {
  custom: {
    50: '#8868c7',
    500: '#4a2bad',
    950: '#000000',
  },
}
SCSS
$custom: #4a2bad;
$custom-light: #8868c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2bad",
  "rgb": {
    "r": 74,
    "g": 43,
    "b": 173
  },
  "hsl": {
    "h": 254.308,
    "s": 60.185,
    "l": 42.353
  },
  "oklch": {
    "l": 0.41687,
    "c": 0.19192,
    "h": 285.5
  },
  "luminance": 0.06201
}

Semantic roles & 50–950 ramp

primary
#4A2BAD
secondary
#B0C46F
accent
#E344BD
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0613
muted
#7D7A82

Preview Lab

Preview with #4A2BAD

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

Preview Lab → · Contrast checker → · Palette generator →

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