#4D207E#4D207E

#4D207E is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.3% C 0.149 H 301.0°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#4D207E
RGBrgb(77, 32, 126)
HSLhsl(269, 59%, 31%)
HSVhsv(269, 75%, 49%)
CMYKcmyk(38.9%, 74.6%, 0%, 50.6%)
CIE-LABlab(24.05, 40.29, -44.90)
CIE-LCHlch(24.05, 60.33, 311.91°)
OKLaboklab(36.33% 0.0769 -0.1281)
OKLCHoklch(36.33% 0.149 301)
XYZxyz(7.3421, 4.1171, 20.1425)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D207E #517E20
analogous
#20227E #4D207E #7C207E
triadic
#4D207E #7E4D20 #207E4D
tetradic
#4D207E #7E2022 #517E20 #207E7C
square
#4D207E #7E2022 #517E20 #207E7C
split-complementary
#4D207E #7E7C20 #227E20
monochromatic
#11071C #2F144D #4D207E #6B2CAF #8948D0

Accessibility & contrast

On white

11.52
#4D207E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4D207E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D207E
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D207E#FFFFFF#000000##FFFFFF
##4D207E1.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#00397C
Tritanopia (blue-blind)
#42374D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4d207e;
/* rgb */ color: rgb(77, 32, 126);
/* oklch */ color: oklch(36.3% 0.149 301.0);
Tailwind
colors: {
  custom: {
    50: '#8460a4',
    500: '#4d207e',
    950: '#000000',
  },
}
SCSS
$custom: #4d207e;
$custom-light: #8460a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4d207e",
  "rgb": {
    "r": 77,
    "g": 32,
    "b": 126
  },
  "hsl": {
    "h": 268.723,
    "s": 59.494,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36327,
    "c": 0.14937,
    "h": 301
  },
  "luminance": 0.04117
}

Semantic roles & 50–950 ramp

primary
#4D207E
secondary
#7FB149
accent
#E34597
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4D207E

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

Preview Lab → · Contrast checker → · Palette generator →

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