#4B2281#4B2281

#4B2281 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.6% C 0.150 H 298.3°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#4B2281
RGBrgb(75, 34, 129)
HSLhsl(266, 58%, 32%)
HSVhsv(266, 74%, 51%)
CMYKcmyk(41.9%, 73.6%, 0%, 49.4%)
CIE-LABlab(24.40, 39.70, -46.24)
CIE-LCHlch(24.40, 60.94, 310.64°)
OKLaboklab(36.59% 0.0711 -0.1321)
OKLCHoklch(36.59% 0.15 298.3)
XYZxyz(7.4351, 4.2248, 21.1884)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B2281 #588122
analogous
#222981 #4B2281 #7B2281
triadic
#4B2281 #814B22 #22814B
tetradic
#4B2281 #812229 #588122 #22817B
square
#4B2281 #812229 #588122 #22817B
split-complementary
#4B2281 #817B22 #298122
monochromatic
#130820 #2F1551 #4B2281 #672FB1 #864DD0

Accessibility & contrast

On white

11.38
#4B2281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#4B2281 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B2281
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B2281#FFFFFF#000000##FFFFFF
##4B22811.0011.381.8511.38
#FFFFFF11.381.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A84
Deuteranopia (green-blind)
#00397F
Tritanopia (blue-blind)
#3E3A4F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4b2281;
/* rgb */ color: rgb(75, 34, 129);
/* oklch */ color: oklch(36.6% 0.150 298.3);
Tailwind
colors: {
  custom: {
    50: '#8361a6',
    500: '#4b2281',
    950: '#000000',
  },
}
SCSS
$custom: #4b2281;
$custom-light: #8361a6;
$custom-dark: #000000;
JSON
{
  "hex": "#4b2281",
  "rgb": {
    "r": 75,
    "g": 34,
    "b": 129
  },
  "hsl": {
    "h": 265.895,
    "s": 58.282,
    "l": 31.961
  },
  "oklch": {
    "l": 0.36594,
    "c": 0.15003,
    "h": 298.3
  },
  "luminance": 0.04225
}

Semantic roles & 50–950 ramp

primary
#4B2281
secondary
#87B34B
accent
#E1469F
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4B2281

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

Preview Lab → · Contrast checker → · Palette generator →

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