#4D208C#4D208C

#4D208C is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.165 H 296.4°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#4D208C
RGBrgb(77, 32, 140)
HSLhsl(265, 63%, 34%)
HSVhsv(265, 77%, 55%)
CMYKcmyk(45%, 77.1%, 0%, 45.1%)
CIE-LABlab(25.27, 44.01, -51.70)
CIE-LCHlch(25.27, 67.89, 310.41°)
OKLaboklab(37.56% 0.0736 -0.148)
OKLCHoklch(37.56% 0.165 296.4)
XYZxyz(8.3094, 4.5041, 25.2374)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D208C #5F8C20
analogous
#20298C #4D208C #83208C
triadic
#4D208C #8C4D20 #208C4D
tetradic
#4D208C #8C2029 #5F8C20 #208C83
square
#4D208C #8C2029 #5F8C20 #208C83
split-complementary
#4D208C #8C8320 #298C20
monochromatic
#160928 #32155A #4D208C #682BBE #8850D7

Accessibility & contrast

On white

11.05
#4D208C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#4D208C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D208C
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D208C#FFFFFF#000000##FFFFFF
##4D208C1.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8F
Deuteranopia (green-blind)
#003A8A
Tritanopia (blue-blind)
#3C3D55
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4d208c;
/* rgb */ color: rgb(77, 32, 140);
/* oklch */ color: oklch(37.6% 0.165 296.4);
Tailwind
colors: {
  custom: {
    50: '#8561af',
    500: '#4d208c',
    950: '#000000',
  },
}
SCSS
$custom: #4d208c;
$custom-light: #8561af;
$custom-dark: #000000;
JSON
{
  "hex": "#4d208c",
  "rgb": {
    "r": 77,
    "g": 32,
    "b": 140
  },
  "hsl": {
    "h": 265,
    "s": 62.791,
    "l": 33.725
  },
  "oklch": {
    "l": 0.37564,
    "c": 0.1653,
    "h": 296.4
  },
  "luminance": 0.04504
}

Semantic roles & 50–950 ramp

primary
#4D208C
secondary
#8DBA4E
accent
#E642A2
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4D208C

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

Preview Lab → · Contrast checker → · Palette generator →

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