#4D207B#4D207B

#4D207B is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.146 H 302.1°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#4D207B
RGBrgb(77, 32, 123)
HSLhsl(270, 59%, 30%)
HSVhsv(270, 74%, 48%)
CMYKcmyk(37.4%, 74%, 0%, 51.8%)
CIE-LABlab(23.81, 39.51, -43.40)
CIE-LCHlch(23.81, 58.69, 312.31°)
OKLaboklab(36.07% 0.0775 -0.1237)
OKLCHoklch(36.07% 0.146 302.1)
XYZxyz(7.1514, 4.0408, 19.1383)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D207B #4E7B20
analogous
#20217B #4D207B #7A207B
triadic
#4D207B #7B4D20 #207B4D
tetradic
#4D207B #7B2021 #4E7B20 #207B7A
square
#4D207B #7B2021 #4E7B20 #207B7A
split-complementary
#4D207B #7B7A20 #217B20
monochromatic
#10071A #2F134A #4D207B #6B2DAC #8A46CF

Accessibility & contrast

On white

11.61
#4D207B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#4D207B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D207B
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D207B#FFFFFF#000000##FFFFFF
##4D207B1.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387E
Deuteranopia (green-blind)
#003879
Tritanopia (blue-blind)
#43364B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4d207b;
/* rgb */ color: rgb(77, 32, 123);
/* oklch */ color: oklch(36.1% 0.146 302.1);
Tailwind
colors: {
  custom: {
    50: '#8360a2',
    500: '#4d207b',
    950: '#000000',
  },
}
SCSS
$custom: #4d207b;
$custom-light: #8360a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4d207b",
  "rgb": {
    "r": 77,
    "g": 32,
    "b": 123
  },
  "hsl": {
    "h": 269.67,
    "s": 58.71,
    "l": 30.392
  },
  "oklch": {
    "l": 0.36073,
    "c": 0.14593,
    "h": 302.1
  },
  "luminance": 0.04041
}

Semantic roles & 50–950 ramp

primary
#4D207B
secondary
#7CAE49
accent
#E24695
background
#F8F5FA
surface
#EFEAF3
border
#CAC6CD
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4D207B

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

Preview Lab → · Contrast checker → · Palette generator →

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