#4B2272#4B2272

#4B2272 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.3% C 0.132 H 303.8°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#4B2272
RGBrgb(75, 34, 114)
HSLhsl(271, 54%, 29%)
HSVhsv(271, 70%, 45%)
CMYKcmyk(34.2%, 70.2%, 0%, 55.3%)
CIE-LABlab(23.19, 35.67, -38.67)
CIE-LCHlch(23.19, 52.61, 312.69°)
OKLaboklab(35.35% 0.0736 -0.1098)
OKLCHoklch(35.35% 0.132 303.8)
XYZxyz(6.5102, 3.8548, 16.3174)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B2272 #497222
analogous
#232272 #4B2272 #722271
triadic
#4B2272 #724B22 #22724B
tetradic
#4B2272 #722322 #497222 #227172
square
#4B2272 #722322 #497222 #227172
split-complementary
#4B2272 #717222 #227223
monochromatic
#100718 #2C1443 #4B2272 #6A30A1 #8946C8

Accessibility & contrast

On white

11.86
#4B2272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B2272
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B2272#FFFFFF#000000##FFFFFF
##4B22721.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4b2272;
/* rgb */ color: rgb(75, 34, 114);
/* oklch */ color: oklch(35.3% 0.132 303.8);
Tailwind
colors: {
  custom: {
    50: '#81609b',
    500: '#4b2272',
    950: '#000000',
  },
}
SCSS
$custom: #4b2272;
$custom-light: #81609b;
$custom-dark: #000000;
JSON
{
  "hex": "#4b2272",
  "rgb": {
    "r": 75,
    "g": 34,
    "b": 114
  },
  "hsl": {
    "h": 270.75,
    "s": 54.054,
    "l": 29.02
  },
  "oklch": {
    "l": 0.35345,
    "c": 0.13224,
    "h": 303.8
  },
  "luminance": 0.03855
}

Semantic roles & 50–950 ramp

primary
#4B2272
secondary
#77A54B
accent
#DD4A92
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4B2272

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

Preview Lab → · Contrast checker → · Palette generator →

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