#4B2872#4B2872

#4B2872 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.2% C 0.123 H 302.4°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#4B2872
RGBrgb(75, 40, 114)
HSLhsl(268, 48%, 30%)
HSVhsv(268, 65%, 45%)
CMYKcmyk(34.2%, 64.9%, 0%, 55.3%)
CIE-LABlab(24.41, 32.32, -36.69)
CIE-LCHlch(24.41, 48.90, 311.38°)
OKLaboklab(36.23% 0.0661 -0.104)
OKLCHoklch(36.23% 0.123 302.4)
XYZxyz(6.6970, 4.2283, 16.3797)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B2872 #4F7228
analogous
#282A72 #4B2872 #702872
triadic
#4B2872 #724B28 #28724B
tetradic
#4B2872 #72282A #4F7228 #287270
square
#4B2872 #72282A #4F7228 #287270
split-complementary
#4B2872 #727028 #2A7228
monochromatic
#0F0817 #2D1845 #4B2872 #69389F #8752C2

Accessibility & contrast

On white

11.38
#4B2872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#4B2872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B2872
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B2872#FFFFFF#000000##FFFFFF
##4B28721.0011.381.8511.38
#FFFFFF11.381.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003974
Deuteranopia (green-blind)
#113A70
Tritanopia (blue-blind)
#433849
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4b2872;
/* rgb */ color: rgb(75, 40, 114);
/* oklch */ color: oklch(36.2% 0.123 302.4);
Tailwind
colors: {
  custom: {
    50: '#80649b',
    500: '#4b2872',
    950: '#000000',
  },
}
SCSS
$custom: #4b2872;
$custom-light: #80649b;
$custom-dark: #000000;
JSON
{
  "hex": "#4b2872",
  "rgb": {
    "r": 75,
    "g": 40,
    "b": 114
  },
  "hsl": {
    "h": 268.378,
    "s": 48.052,
    "l": 30.196
  },
  "oklch": {
    "l": 0.3623,
    "c": 0.12326,
    "h": 302.4
  },
  "luminance": 0.04228
}

Semantic roles & 50–950 ramp

primary
#4B2872
secondary
#7DA452
accent
#D85098
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0A050E
muted
#7C7A7E

Preview Lab

Preview with #4B2872

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

Preview Lab → · Contrast checker → · Palette generator →

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