#4B2171#4B2171

#4B2171 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.1% C 0.132 H 304.5°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#4B2171
RGBrgb(75, 33, 113)
HSLhsl(272, 55%, 29%)
HSVhsv(272, 71%, 44%)
CMYKcmyk(33.6%, 70.8%, 0%, 55.7%)
CIE-LABlab(22.92, 35.94, -38.46)
CIE-LCHlch(22.92, 52.64, 313.06°)
OKLaboklab(35.13% 0.075 -0.1092)
OKLCHoklch(35.13% 0.132 304.5)
XYZxyz(6.4255, 3.7759, 16.0099)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B2171 #477121
analogous
#232171 #4B2171 #71216F
triadic
#4B2171 #714B21 #21714B
tetradic
#4B2171 #712321 #477121 #216F71
square
#4B2171 #712321 #477121 #216F71
split-complementary
#4B2171 #6F7121 #217123
monochromatic
#100718 #2C1342 #4B2171 #6A2FA0 #8A44C8

Accessibility & contrast

On white

11.96
#4B2171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#4B2171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B2171
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B2171#FFFFFF#000000##FFFFFF
##4B21711.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003673
Deuteranopia (green-blind)
#04376F
Tritanopia (blue-blind)
#443346
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4b2171;
/* rgb */ color: rgb(75, 33, 113);
/* oklch */ color: oklch(35.1% 0.132 304.5);
Tailwind
colors: {
  custom: {
    50: '#81609a',
    500: '#4b2171',
    950: '#000000',
  },
}
SCSS
$custom: #4b2171;
$custom-light: #81609a;
$custom-dark: #000000;
JSON
{
  "hex": "#4b2171",
  "rgb": {
    "r": 75,
    "g": 33,
    "b": 113
  },
  "hsl": {
    "h": 271.5,
    "s": 54.795,
    "l": 28.627
  },
  "oklch": {
    "l": 0.35127,
    "c": 0.13248,
    "h": 304.5
  },
  "luminance": 0.03776
}

Semantic roles & 50–950 ramp

primary
#4B2171
secondary
#75A549
accent
#DE4A90
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4B2171

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

Preview Lab → · Contrast checker → · Palette generator →

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