#4B2271#4B2271

#4B2271 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.3% C 0.131 H 304.3°. Best body text is #FFFFFF at 11.89:1 contrast (WCAG AA passes).

Color values

HEX#4B2271
RGBrgb(75, 34, 113)
HSLhsl(271, 54%, 29%)
HSVhsv(271, 70%, 44%)
CMYKcmyk(33.6%, 69.9%, 0%, 55.7%)
CIE-LABlab(23.11, 35.41, -38.15)
CIE-LCHlch(23.11, 52.05, 312.86°)
OKLaboklab(35.27% 0.0738 -0.1083)
OKLCHoklch(35.27% 0.131 304.3)
XYZxyz(6.4536, 3.8322, 16.0193)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B2271 #487122
analogous
#242271 #4B2271 #712270
triadic
#4B2271 #714B22 #22714B
tetradic
#4B2271 #712422 #487122 #227071
square
#4B2271 #712422 #487122 #227071
split-complementary
#4B2271 #707122 #227124
monochromatic
#100718 #2C1442 #4B2271 #6A30A0 #8946C7

Accessibility & contrast

On white

11.89
#4B2271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#4B2271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B2271
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B2271#FFFFFF#000000##FFFFFF
##4B22711.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4b2271;
/* rgb */ color: rgb(75, 34, 113);
/* oklch */ color: oklch(35.3% 0.131 304.3);
Tailwind
colors: {
  custom: {
    50: '#81609a',
    500: '#4b2271',
    950: '#000000',
  },
}
SCSS
$custom: #4b2271;
$custom-light: #81609a;
$custom-dark: #000000;
JSON
{
  "hex": "#4b2271",
  "rgb": {
    "r": 75,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 271.139,
    "s": 53.741,
    "l": 28.824
  },
  "oklch": {
    "l": 0.35265,
    "c": 0.13105,
    "h": 304.3
  },
  "luminance": 0.03832
}

Semantic roles & 50–950 ramp

primary
#4B2271
secondary
#76A44A
accent
#DD4B91
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4B2271

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

Preview Lab → · Contrast checker → · Palette generator →

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