#4B2173#4B2173

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

Color values

HEX#4B2173
RGBrgb(75, 33, 115)
HSLhsl(271, 55%, 29%)
HSVhsv(271, 71%, 45%)
CMYKcmyk(34.8%, 71.3%, 0%, 54.9%)
CIE-LABlab(23.07, 36.47, -39.50)
CIE-LCHlch(23.07, 53.76, 312.72°)
OKLaboklab(35.29% 0.0747 -0.1123)
OKLCHoklch(35.29% 0.135 303.6)
XYZxyz(6.5393, 3.8214, 16.6094)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B2173 #497321
analogous
#222173 #4B2173 #732172
triadic
#4B2173 #734B21 #21734B
tetradic
#4B2173 #732221 #497321 #217273
square
#4B2173 #732221 #497321 #217273
split-complementary
#4B2173 #727321 #217322
monochromatic
#100718 #2C1343 #4B2173 #6A2FA3 #8945CA

Accessibility & contrast

On white

11.90
#4B2173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B2173
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B2173#FFFFFF#000000##FFFFFF
##4B21731.0011.901.7611.90
#FFFFFF11.901.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003675
Deuteranopia (green-blind)
#003771
Tritanopia (blue-blind)
#433447
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4b2173;
/* rgb */ color: rgb(75, 33, 115);
/* oklch */ color: oklch(35.3% 0.135 303.6);
Tailwind
colors: {
  custom: {
    50: '#81609c',
    500: '#4b2173',
    950: '#000000',
  },
}
SCSS
$custom: #4b2173;
$custom-light: #81609c;
$custom-dark: #000000;
JSON
{
  "hex": "#4b2173",
  "rgb": {
    "r": 75,
    "g": 33,
    "b": 115
  },
  "hsl": {
    "h": 270.732,
    "s": 55.405,
    "l": 29.02
  },
  "oklch": {
    "l": 0.35288,
    "c": 0.13484,
    "h": 303.6
  },
  "luminance": 0.03821
}

Semantic roles & 50–950 ramp

primary
#4B2173
secondary
#77A649
accent
#DF4992
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4B2173

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

Preview Lab → · Contrast checker → · Palette generator →

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