#4A2BB3#4A2BB3

#4A2BB3 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.3% C 0.199 H 284.4°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#4A2BB3
RGBrgb(74, 43, 179)
HSLhsl(254, 61%, 44%)
HSVhsv(254, 76%, 70%)
CMYKcmyk(58.7%, 76%, 0%, 29.8%)
CIE-LABlab(30.49, 49.20, -66.87)
CIE-LCHlch(30.49, 83.02, 306.34°)
OKLaboklab(42.27% 0.0496 -0.1927)
OKLCHoklch(42.27% 0.199 284.4)
XYZxyz(11.8221, 6.4375, 43.2587)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2BB3 #94B32B
analogous
#2B50B3 #4A2BB3 #8E2BB3
triadic
#4A2BB3 #B34A2B #2BB34A
tetradic
#4A2BB3 #B32B50 #94B32B #2BB38E
square
#4A2BB3 #B32B50 #94B32B #2BB38E
split-complementary
#4A2BB3 #B38E2B #50B32B
monochromatic
#211350 #361F82 #4A2BB3 #6848D3 #9179DF

Accessibility & contrast

On white

9.18
#4A2BB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#4A2BB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2BB3
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2BB3#FFFFFF#000000##FFFFFF
##4A2BB31.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB7
Deuteranopia (green-blind)
#0043B1
Tritanopia (blue-blind)
#0C526D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4a2bb3;
/* rgb */ color: rgb(74, 43, 179);
/* oklch */ color: oklch(42.3% 0.199 284.4);
Tailwind
colors: {
  custom: {
    50: '#8968cb',
    500: '#4a2bb3',
    950: '#000000',
  },
}
SCSS
$custom: #4a2bb3;
$custom-light: #8968cb;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2bb3",
  "rgb": {
    "r": 74,
    "g": 43,
    "b": 179
  },
  "hsl": {
    "h": 253.676,
    "s": 61.261,
    "l": 43.529
  },
  "oklch": {
    "l": 0.42269,
    "c": 0.19896,
    "h": 284.4
  },
  "luminance": 0.06438
}

Semantic roles & 50–950 ramp

primary
#4A2BB3
secondary
#B4C773
accent
#E443C0
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4A2BB3

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

Preview Lab → · Contrast checker → · Palette generator →

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