#4D2272#4D2272

#4D2272 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.6% C 0.133 H 305.2°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#4D2272
RGBrgb(77, 34, 114)
HSLhsl(272, 54%, 29%)
HSVhsv(272, 70%, 45%)
CMYKcmyk(32.5%, 70.2%, 0%, 55.3%)
CIE-LABlab(23.46, 36.14, -38.21)
CIE-LCHlch(23.46, 52.59, 313.40°)
OKLaboklab(35.6% 0.0766 -0.1084)
OKLCHoklch(35.6% 0.133 305.2)
XYZxyz(6.6692, 3.9368, 16.3249)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2272 #477222
analogous
#252272 #4D2272 #72226F
triadic
#4D2272 #724D22 #22724D
tetradic
#4D2272 #722522 #477222 #226F72
square
#4D2272 #722522 #477222 #226F72
split-complementary
#4D2272 #6F7222 #227225
monochromatic
#100718 #2D1443 #4D2272 #6D30A1 #8C46C8

Accessibility & contrast

On white

11.75
#4D2272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#4D2272 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2272
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2272#FFFFFF#000000##FFFFFF
##4D22721.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d2272;
/* rgb */ color: rgb(77, 34, 114);
/* oklch */ color: oklch(35.6% 0.133 305.2);
Tailwind
colors: {
  custom: {
    50: '#82609b',
    500: '#4d2272',
    950: '#000000',
  },
}
SCSS
$custom: #4d2272;
$custom-light: #82609b;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2272",
  "rgb": {
    "r": 77,
    "g": 34,
    "b": 114
  },
  "hsl": {
    "h": 272.25,
    "s": 54.054,
    "l": 29.02
  },
  "oklch": {
    "l": 0.35603,
    "c": 0.13276,
    "h": 305.2
  },
  "luminance": 0.03937
}

Semantic roles & 50–950 ramp

primary
#4D2272
secondary
#74A54B
accent
#DD4A8E
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4D2272

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

Preview Lab → · Contrast checker → · Palette generator →

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