#4D207F#4D207F

#4D207F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.4% C 0.151 H 300.6°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#4D207F
RGBrgb(77, 32, 127)
HSLhsl(268, 60%, 31%)
HSVhsv(268, 75%, 50%)
CMYKcmyk(39.4%, 74.8%, 0%, 50.2%)
CIE-LABlab(24.14, 40.55, -45.39)
CIE-LCHlch(24.14, 60.87, 311.78°)
OKLaboklab(36.41% 0.0767 -0.1295)
OKLCHoklch(36.41% 0.151 300.6)
XYZxyz(7.4069, 4.1431, 20.4840)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D207F #527F20
analogous
#20227F #4D207F #7C207F
triadic
#4D207F #7F4D20 #207F4D
tetradic
#4D207F #7F2022 #527F20 #207F7C
square
#4D207F #7F2022 #527F20 #207F7C
split-complementary
#4D207F #7F7C20 #227F20
monochromatic
#12071D #2F144E #4D207F #6B2CB0 #8948D1

Accessibility & contrast

On white

11.48
#4D207F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#4D207F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D207F
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D207F#FFFFFF#000000##FFFFFF
##4D207F1.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#00397D
Tritanopia (blue-blind)
#42384D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4d207f;
/* rgb */ color: rgb(77, 32, 127);
/* oklch */ color: oklch(36.4% 0.151 300.6);
Tailwind
colors: {
  custom: {
    50: '#8460a5',
    500: '#4d207f',
    950: '#000000',
  },
}
SCSS
$custom: #4d207f;
$custom-light: #8460a5;
$custom-dark: #000000;
JSON
{
  "hex": "#4d207f",
  "rgb": {
    "r": 77,
    "g": 32,
    "b": 127
  },
  "hsl": {
    "h": 268.421,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36413,
    "c": 0.15052,
    "h": 300.6
  },
  "luminance": 0.04143
}

Semantic roles & 50–950 ramp

primary
#4D207F
secondary
#80B249
accent
#E34598
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4D207F

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

Preview Lab → · Contrast checker → · Palette generator →

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