#4D27AD#4D27AD

#4D27AD is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.5% C 0.196 H 287.4°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#4D27AD
RGBrgb(77, 39, 173)
HSLhsl(257, 63%, 42%)
HSVhsv(257, 77%, 68%)
CMYKcmyk(55.5%, 77.5%, 0%, 32.2%)
CIE-LABlab(29.53, 49.82, -64.86)
CIE-LCHlch(29.53, 81.78, 307.53°)
OKLaboklab(41.49% 0.0586 -0.1867)
OKLCHoklch(41.49% 0.196 287.4)
XYZxyz(11.3267, 6.0453, 40.0971)
Luminance0.0605 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D27AD #87AD27
analogous
#2744AD #4D27AD #9027AD
triadic
#4D27AD #AD4D27 #27AD4D
tetradic
#4D27AD #AD2744 #87AD27 #27AD90
square
#4D27AD #AD2744 #87AD27 #27AD90
split-complementary
#4D27AD #AD9027 #44AD27
monochromatic
#211049 #371C7B #4D27AD #683ED3 #8F70DF

Accessibility & contrast

On white

9.51
#4D27AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#4D27AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D27AD
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D27AD#FFFFFF#000000##FFFFFF
##4D27AD1.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B1
Deuteranopia (green-blind)
#0042AB
Tritanopia (blue-blind)
#234D69
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4d27ad;
/* rgb */ color: rgb(77, 39, 173);
/* oklch */ color: oklch(41.5% 0.196 287.4);
Tailwind
colors: {
  custom: {
    50: '#8a66c7',
    500: '#4d27ad',
    950: '#000000',
  },
}
SCSS
$custom: #4d27ad;
$custom-light: #8a66c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4d27ad",
  "rgb": {
    "r": 77,
    "g": 39,
    "b": 173
  },
  "hsl": {
    "h": 257.015,
    "s": 63.208,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41489,
    "c": 0.19565,
    "h": 287.4
  },
  "luminance": 0.06046
}

Semantic roles & 50–950 ramp

primary
#4D27AD
secondary
#ACC66A
accent
#E642B8
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4D27AD

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

Preview Lab → · Contrast checker → · Palette generator →

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