#4D27A2#4D27A2

#4D27A2 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.4% C 0.183 H 289.7°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#4D27A2
RGBrgb(77, 39, 162)
HSLhsl(259, 61%, 39%)
HSVhsv(259, 76%, 64%)
CMYKcmyk(52.5%, 75.9%, 0%, 36.5%)
CIE-LABlab(28.48, 46.71, -59.95)
CIE-LCHlch(28.48, 76.00, 307.92°)
OKLaboklab(40.44% 0.0617 -0.1723)
OKLCHoklch(40.44% 0.183 289.7)
XYZxyz(10.3058, 5.6370, 34.7204)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D27A2 #7CA227
analogous
#273EA2 #4D27A2 #8B27A2
triadic
#4D27A2 #A24D27 #27A24D
tetradic
#4D27A2 #A2273E #7CA227 #27A28B
square
#4D27A2 #A2273E #7CA227 #27A28B
split-complementary
#4D27A2 #A28B27 #3EA227
monochromatic
#1E0F3F #361B71 #4D27A2 #6637CF #8C69DB

Accessibility & contrast

On white

9.87
#4D27A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#4D27A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D27A2
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D27A2#FFFFFF#000000##FFFFFF
##4D27A21.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A6
Deuteranopia (green-blind)
#0040A0
Tritanopia (blue-blind)
#2E4963
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4d27a2;
/* rgb */ color: rgb(77, 39, 162);
/* oklch */ color: oklch(40.4% 0.183 289.7);
Tailwind
colors: {
  custom: {
    50: '#8865bf',
    500: '#4d27a2',
    950: '#000000',
  },
}
SCSS
$custom: #4d27a2;
$custom-light: #8865bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4d27a2",
  "rgb": {
    "r": 77,
    "g": 39,
    "b": 162
  },
  "hsl": {
    "h": 258.537,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.40435,
    "c": 0.183,
    "h": 289.7
  },
  "luminance": 0.05637
}

Semantic roles & 50–950 ramp

primary
#4D27A2
secondary
#A4C164
accent
#E443B3
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4D27A2

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

Preview Lab → · Contrast checker → · Palette generator →

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