#4B2181#4B2181

#4B2181 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.5% C 0.151 H 298.5°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#4B2181
RGBrgb(75, 33, 129)
HSLhsl(266, 59%, 32%)
HSVhsv(266, 74%, 51%)
CMYKcmyk(41.9%, 74.4%, 0%, 49.4%)
CIE-LABlab(24.22, 40.20, -46.54)
CIE-LCHlch(24.22, 61.50, 310.83°)
OKLaboklab(36.47% 0.0722 -0.133)
OKLCHoklch(36.47% 0.151 298.5)
XYZxyz(7.4069, 4.1684, 21.1790)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B2181 #578121
analogous
#212781 #4B2181 #7B2181
triadic
#4B2181 #814B21 #21814B
tetradic
#4B2181 #812127 #578121 #21817B
square
#4B2181 #812127 #578121 #21817B
split-complementary
#4B2181 #817B21 #278121
monochromatic
#120820 #2F1550 #4B2181 #672DB2 #864BD1

Accessibility & contrast

On white

11.45
#4B2181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#4B2181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B2181
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B2181#FFFFFF#000000##FFFFFF
##4B21811.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4b2181;
/* rgb */ color: rgb(75, 33, 129);
/* oklch */ color: oklch(36.5% 0.151 298.5);
Tailwind
colors: {
  custom: {
    50: '#8360a6',
    500: '#4b2181',
    950: '#000000',
  },
}
SCSS
$custom: #4b2181;
$custom-light: #8360a6;
$custom-dark: #000000;
JSON
{
  "hex": "#4b2181",
  "rgb": {
    "r": 75,
    "g": 33,
    "b": 129
  },
  "hsl": {
    "h": 266.25,
    "s": 59.259,
    "l": 31.765
  },
  "oklch": {
    "l": 0.36466,
    "c": 0.15128,
    "h": 298.5
  },
  "luminance": 0.04169
}

Semantic roles & 50–950 ramp

primary
#4B2181
secondary
#85B44A
accent
#E2459E
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4B2181

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

Preview Lab → · Contrast checker → · Palette generator →

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