#4B2172#4B2172

#4B2172 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.2% C 0.134 H 304.0°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#4B2172
RGBrgb(75, 33, 114)
HSLhsl(271, 55%, 29%)
HSVhsv(271, 71%, 45%)
CMYKcmyk(34.2%, 71.1%, 0%, 55.3%)
CIE-LABlab(22.99, 36.20, -38.98)
CIE-LCHlch(22.99, 53.20, 312.88°)
OKLaboklab(35.21% 0.0748 -0.1107)
OKLCHoklch(35.21% 0.134 304)
XYZxyz(6.4821, 3.7985, 16.3080)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B2172 #487221
analogous
#232172 #4B2172 #722171
triadic
#4B2172 #724B21 #21724B
tetradic
#4B2172 #722321 #487221 #217172
square
#4B2172 #722321 #487221 #217172
split-complementary
#4B2172 #717221 #217223
monochromatic
#100718 #2C1343 #4B2172 #6A2FA1 #8944C9

Accessibility & contrast

On white

11.93
#4B2172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B2172
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B2172#FFFFFF#000000##FFFFFF
##4B21721.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003674
Deuteranopia (green-blind)
#023770
Tritanopia (blue-blind)
#443346
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4b2172;
/* rgb */ color: rgb(75, 33, 114);
/* oklch */ color: oklch(35.2% 0.134 304.0);
Tailwind
colors: {
  custom: {
    50: '#81609b',
    500: '#4b2172',
    950: '#000000',
  },
}
SCSS
$custom: #4b2172;
$custom-light: #81609b;
$custom-dark: #000000;
JSON
{
  "hex": "#4b2172",
  "rgb": {
    "r": 75,
    "g": 33,
    "b": 114
  },
  "hsl": {
    "h": 271.111,
    "s": 55.102,
    "l": 28.824
  },
  "oklch": {
    "l": 0.35207,
    "c": 0.13366,
    "h": 304
  },
  "luminance": 0.03798
}

Semantic roles & 50–950 ramp

primary
#4B2172
secondary
#76A549
accent
#DE4991
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4B2172

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

Preview Lab → · Contrast checker → · Palette generator →

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