#4D2175#4D2175

#4D2175 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.7% C 0.138 H 304.2°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#4D2175
RGBrgb(77, 33, 117)
HSLhsl(271, 56%, 29%)
HSVhsv(271, 72%, 46%)
CMYKcmyk(34.2%, 71.8%, 0%, 54.1%)
CIE-LABlab(23.51, 37.44, -40.06)
CIE-LCHlch(23.51, 54.83, 313.06°)
OKLaboklab(35.71% 0.0774 -0.1139)
OKLCHoklch(35.71% 0.138 304.2)
XYZxyz(6.8146, 3.9499, 17.2296)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2175 #497521
analogous
#232175 #4D2175 #752173
triadic
#4D2175 #754D21 #21754D
tetradic
#4D2175 #752321 #497521 #217375
square
#4D2175 #752321 #497521 #217375
split-complementary
#4D2175 #737521 #217523
monochromatic
#100718 #2E1445 #4D2175 #6C2EA5 #8B46CB

Accessibility & contrast

On white

11.73
#4D2175 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D2175
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2175#FFFFFF#000000##FFFFFF
##4D21751.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003777
Deuteranopia (green-blind)
#003873
Tritanopia (blue-blind)
#453448
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4d2175;
/* rgb */ color: rgb(77, 33, 117);
/* oklch */ color: oklch(35.7% 0.138 304.2);
Tailwind
colors: {
  custom: {
    50: '#83609d',
    500: '#4d2175',
    950: '#000000',
  },
}
SCSS
$custom: #4d2175;
$custom-light: #83609d;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2175",
  "rgb": {
    "r": 77,
    "g": 33,
    "b": 117
  },
  "hsl": {
    "h": 271.429,
    "s": 56,
    "l": 29.412
  },
  "oklch": {
    "l": 0.35707,
    "c": 0.13767,
    "h": 304.2
  },
  "luminance": 0.0395
}

Semantic roles & 50–950 ramp

primary
#4D2175
secondary
#77A84A
accent
#DF4990
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4D2175

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

Preview Lab → · Contrast checker → · Palette generator →

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