#4D2173#4D2173

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

Color values

HEX#4D2173
RGBrgb(77, 33, 115)
HSLhsl(272, 55%, 29%)
HSVhsv(272, 71%, 45%)
CMYKcmyk(33%, 71.3%, 0%, 54.9%)
CIE-LABlab(23.35, 36.92, -39.04)
CIE-LCHlch(23.35, 53.73, 313.40°)
OKLaboklab(35.55% 0.0777 -0.1108)
OKLCHoklch(35.55% 0.135 305)
XYZxyz(6.6982, 3.9033, 16.6169)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2173 #477321
analogous
#242173 #4D2173 #732170
triadic
#4D2173 #734D21 #21734D
tetradic
#4D2173 #732421 #477321 #217073
square
#4D2173 #732421 #477321 #217073
split-complementary
#4D2173 #707321 #217324
monochromatic
#100718 #2D1343 #4D2173 #6D2FA3 #8C45CA

Accessibility & contrast

On white

11.79
#4D2173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D2173
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2173#FFFFFF#000000##FFFFFF
##4D21731.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003675
Deuteranopia (green-blind)
#043871
Tritanopia (blue-blind)
#463347
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4d2173;
/* rgb */ color: rgb(77, 33, 115);
/* oklch */ color: oklch(35.5% 0.135 305.0);
Tailwind
colors: {
  custom: {
    50: '#82609c',
    500: '#4d2173',
    950: '#000000',
  },
}
SCSS
$custom: #4d2173;
$custom-light: #82609c;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2173",
  "rgb": {
    "r": 77,
    "g": 33,
    "b": 115
  },
  "hsl": {
    "h": 272.195,
    "s": 55.405,
    "l": 29.02
  },
  "oklch": {
    "l": 0.35547,
    "c": 0.13534,
    "h": 305
  },
  "luminance": 0.03903
}

Semantic roles & 50–950 ramp

primary
#4D2173
secondary
#74A649
accent
#DF498E
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4D2173

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

Preview Lab → · Contrast checker → · Palette generator →

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