#4B2071#4B2071

#4B2071 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.0% C 0.134 H 304.7°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#4B2071
RGBrgb(75, 32, 113)
HSLhsl(272, 56%, 28%)
HSVhsv(272, 72%, 44%)
CMYKcmyk(33.6%, 71.7%, 0%, 55.7%)
CIE-LABlab(22.73, 36.47, -38.77)
CIE-LCHlch(22.73, 53.23, 313.25°)
OKLaboklab(34.99% 0.0762 -0.1101)
OKLCHoklch(34.99% 0.134 304.7)
XYZxyz(6.3981, 3.7212, 16.0008)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B2071 #467120
analogous
#222071 #4B2071 #71206E
triadic
#4B2071 #714B20 #20714B
tetradic
#4B2071 #712220 #467120 #206E71
square
#4B2071 #712220 #467120 #206E71
split-complementary
#4B2071 #6E7120 #207122
monochromatic
#100718 #2B1241 #4B2071 #6B2EA1 #8A42C9

Accessibility & contrast

On white

12.04
#4B2071 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#4B2071 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B2071
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B2071#FFFFFF#000000##FFFFFF
##4B20711.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003573
Deuteranopia (green-blind)
#02366F
Tritanopia (blue-blind)
#443246
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4b2071;
/* rgb */ color: rgb(75, 32, 113);
/* oklch */ color: oklch(35.0% 0.134 304.7);
Tailwind
colors: {
  custom: {
    50: '#815f9a',
    500: '#4b2071',
    950: '#000000',
  },
}
SCSS
$custom: #4b2071;
$custom-light: #815f9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4b2071",
  "rgb": {
    "r": 75,
    "g": 32,
    "b": 113
  },
  "hsl": {
    "h": 271.852,
    "s": 55.862,
    "l": 28.431
  },
  "oklch": {
    "l": 0.34992,
    "c": 0.13389,
    "h": 304.7
  },
  "luminance": 0.03721
}

Semantic roles & 50–950 ramp

primary
#4B2071
secondary
#74A548
accent
#DF498F
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4B2071

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

Preview Lab → · Contrast checker → · Palette generator →

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