#4D27AE#4D27AE

#4D27AE is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.6% C 0.197 H 287.2°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#4D27AE
RGBrgb(77, 39, 174)
HSLhsl(257, 63%, 42%)
HSVhsv(257, 78%, 68%)
CMYKcmyk(55.7%, 77.6%, 0%, 31.8%)
CIE-LABlab(29.62, 50.10, -65.30)
CIE-LCHlch(29.62, 82.30, 307.49°)
OKLaboklab(41.59% 0.0584 -0.1879)
OKLCHoklch(41.59% 0.197 287.2)
XYZxyz(11.4238, 6.0842, 40.6086)
Luminance0.0609 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D27AE #88AE27
analogous
#2745AE #4D27AE #9127AE
triadic
#4D27AE #AE4D27 #27AE4D
tetradic
#4D27AE #AE2745 #88AE27 #27AE91
square
#4D27AE #AE2745 #88AE27 #27AE91
split-complementary
#4D27AE #AE9127 #45AE27
monochromatic
#21114A #371C7C #4D27AE #683ED4 #9070DF

Accessibility & contrast

On white

9.47
#4D27AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#4D27AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D27AE
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D27AE#FFFFFF#000000##FFFFFF
##4D27AE1.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B2
Deuteranopia (green-blind)
#0042AC
Tritanopia (blue-blind)
#224E6A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4d27ae;
/* rgb */ color: rgb(77, 39, 174);
/* oklch */ color: oklch(41.6% 0.197 287.2);
Tailwind
colors: {
  custom: {
    50: '#8a66c7',
    500: '#4d27ae',
    950: '#000000',
  },
}
SCSS
$custom: #4d27ae;
$custom-light: #8a66c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4d27ae",
  "rgb": {
    "r": 77,
    "g": 39,
    "b": 174
  },
  "hsl": {
    "h": 256.889,
    "s": 63.38,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41586,
    "c": 0.19679,
    "h": 287.2
  },
  "luminance": 0.06085
}

Semantic roles & 50–950 ramp

primary
#4D27AE
secondary
#ACC66B
accent
#E641B8
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4D27AE

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

Preview Lab → · Contrast checker → · Palette generator →

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