#4B2176#4B2176

#4B2176 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.5% C 0.138 H 302.4°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#4B2176
RGBrgb(75, 33, 118)
HSLhsl(270, 56%, 30%)
HSVhsv(270, 72%, 46%)
CMYKcmyk(36.4%, 72%, 0%, 53.7%)
CIE-LABlab(23.31, 37.26, -41.03)
CIE-LCHlch(23.31, 55.42, 312.24°)
OKLaboklab(35.53% 0.0742 -0.1168)
OKLCHoklch(35.53% 0.138 302.4)
XYZxyz(6.7147, 3.8916, 17.5334)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B2176 #4C7621
analogous
#212276 #4B2176 #762176
triadic
#4B2176 #764B21 #21764B
tetradic
#4B2176 #762122 #4C7621 #217676
square
#4B2176 #762122 #4C7621 #217676
split-complementary
#4B2176 #767621 #227621
monochromatic
#0F0718 #2D1446 #4B2176 #692EA6 #8846CB

Accessibility & contrast

On white

11.81
#4B2176 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#4B2176 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B2176
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B2176#FFFFFF#000000##FFFFFF
##4B21761.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003779
Deuteranopia (green-blind)
#003774
Tritanopia (blue-blind)
#423549
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4b2176;
/* rgb */ color: rgb(75, 33, 118);
/* oklch */ color: oklch(35.5% 0.138 302.4);
Tailwind
colors: {
  custom: {
    50: '#81609e',
    500: '#4b2176',
    950: '#000000',
  },
}
SCSS
$custom: #4b2176;
$custom-light: #81609e;
$custom-dark: #000000;
JSON
{
  "hex": "#4b2176",
  "rgb": {
    "r": 75,
    "g": 33,
    "b": 118
  },
  "hsl": {
    "h": 269.647,
    "s": 56.291,
    "l": 29.608
  },
  "oklch": {
    "l": 0.35533,
    "c": 0.13838,
    "h": 302.4
  },
  "luminance": 0.03892
}

Semantic roles & 50–950 ramp

primary
#4B2176
secondary
#7AA94A
accent
#E04895
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4B2176

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

Preview Lab → · Contrast checker → · Palette generator →

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