#4A2BB1#4A2BB1

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

Color values

HEX#4A2BB1
RGBrgb(74, 43, 177)
HSLhsl(254, 61%, 43%)
HSVhsv(254, 76%, 69%)
CMYKcmyk(58.2%, 75.7%, 0%, 30.6%)
CIE-LABlab(30.30, 48.61, -66.00)
CIE-LCHlch(30.30, 81.97, 306.37°)
OKLaboklab(42.07% 0.0502 -0.1901)
OKLCHoklch(42.07% 0.197 284.8)
XYZxyz(11.6213, 6.3572, 42.2011)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2BB1 #92B12B
analogous
#2B4FB1 #4A2BB1 #8D2BB1
triadic
#4A2BB1 #B14A2B #2BB14A
tetradic
#4A2BB1 #B12B4F #92B12B #2BB18D
square
#4A2BB1 #B12B4F #92B12B #2BB18D
split-complementary
#4A2BB1 #B18D2B #4FB12B
monochromatic
#21134F #351F80 #4A2BB1 #6747D2 #9078DE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4A2BB1#FFFFFF#000000##FFFFFF
##4A2BB11.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)
#004BB5
Deuteranopia (green-blind)
#0043AF
Tritanopia (blue-blind)
#11516C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4a2bb1;
/* rgb */ color: rgb(74, 43, 177);
/* oklch */ color: oklch(42.1% 0.197 284.8);
Tailwind
colors: {
  custom: {
    50: '#8868c9',
    500: '#4a2bb1',
    950: '#000000',
  },
}
SCSS
$custom: #4a2bb1;
$custom-light: #8868c9;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2bb1",
  "rgb": {
    "r": 74,
    "g": 43,
    "b": 177
  },
  "hsl": {
    "h": 253.881,
    "s": 60.909,
    "l": 43.137
  },
  "oklch": {
    "l": 0.42074,
    "c": 0.19663,
    "h": 284.8
  },
  "luminance": 0.06358
}

Semantic roles & 50–950 ramp

primary
#4A2BB1
secondary
#B3C672
accent
#E444BF
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4A2BB1

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

Preview Lab → · Contrast checker → · Palette generator →

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