#4D27A5#4D27A5

#4D27A5 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.7% C 0.186 H 289.1°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#4D27A5
RGBrgb(77, 39, 165)
HSLhsl(258, 62%, 40%)
HSVhsv(258, 76%, 65%)
CMYKcmyk(53.3%, 76.4%, 0%, 35.3%)
CIE-LABlab(28.76, 47.56, -61.31)
CIE-LCHlch(28.76, 77.59, 307.80°)
OKLaboklab(40.72% 0.0609 -0.1762)
OKLCHoklch(40.72% 0.186 289.1)
XYZxyz(10.5756, 5.7449, 36.1417)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D27A5 #7FA527
analogous
#2740A5 #4D27A5 #8C27A5
triadic
#4D27A5 #A54D27 #27A54D
tetradic
#4D27A5 #A52740 #7FA527 #27A58C
square
#4D27A5 #A52740 #7FA527 #27A58C
split-complementary
#4D27A5 #A58C27 #40A527
monochromatic
#1F1042 #361B74 #4D27A5 #6739D0 #8D6ADC

Accessibility & contrast

On white

9.77
#4D27A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#4D27A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D27A5
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D27A5#FFFFFF#000000##FFFFFF
##4D27A51.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A9
Deuteranopia (green-blind)
#0041A3
Tritanopia (blue-blind)
#2B4A64
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4d27a5;
/* rgb */ color: rgb(77, 39, 165);
/* oklch */ color: oklch(40.7% 0.186 289.1);
Tailwind
colors: {
  custom: {
    50: '#8866c1',
    500: '#4d27a5',
    950: '#000000',
  },
}
SCSS
$custom: #4d27a5;
$custom-light: #8866c1;
$custom-dark: #000000;
JSON
{
  "hex": "#4d27a5",
  "rgb": {
    "r": 77,
    "g": 39,
    "b": 165
  },
  "hsl": {
    "h": 258.095,
    "s": 61.765,
    "l": 40
  },
  "oklch": {
    "l": 0.40719,
    "c": 0.18647,
    "h": 289.1
  },
  "luminance": 0.05745
}

Semantic roles & 50–950 ramp

primary
#4D27A5
secondary
#A6C266
accent
#E543B4
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #4D27A5

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

Preview Lab → · Contrast checker → · Palette generator →

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