#4D27A1#4D27A1

#4D27A1 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.3% C 0.182 H 289.9°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#4D27A1
RGBrgb(77, 39, 161)
HSLhsl(259, 61%, 39%)
HSVhsv(259, 76%, 63%)
CMYKcmyk(52.2%, 75.8%, 0%, 36.9%)
CIE-LABlab(28.38, 46.43, -59.50)
CIE-LCHlch(28.38, 75.47, 307.97°)
OKLaboklab(40.34% 0.062 -0.171)
OKLCHoklch(40.34% 0.182 289.9)
XYZxyz(10.2173, 5.6016, 34.2542)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D27A1 #7BA127
analogous
#273EA1 #4D27A1 #8A27A1
triadic
#4D27A1 #A14D27 #27A14D
tetradic
#4D27A1 #A1273E #7BA127 #27A18A
square
#4D27A1 #A1273E #7BA127 #27A18A
split-complementary
#4D27A1 #A18A27 #3EA127
monochromatic
#1E0F3E #351B70 #4D27A1 #6637CE #8C68DA

Accessibility & contrast

On white

9.90
#4D27A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#4D27A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D27A1
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D27A1#FFFFFF#000000##FFFFFF
##4D27A11.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A4
Deuteranopia (green-blind)
#00409F
Tritanopia (blue-blind)
#2F4862
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4d27a1;
/* rgb */ color: rgb(77, 39, 161);
/* oklch */ color: oklch(40.3% 0.182 289.9);
Tailwind
colors: {
  custom: {
    50: '#8865be',
    500: '#4d27a1',
    950: '#000000',
  },
}
SCSS
$custom: #4d27a1;
$custom-light: #8865be;
$custom-dark: #000000;
JSON
{
  "hex": "#4d27a1",
  "rgb": {
    "r": 77,
    "g": 39,
    "b": 161
  },
  "hsl": {
    "h": 258.689,
    "s": 61,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40341,
    "c": 0.18184,
    "h": 289.9
  },
  "luminance": 0.05602
}

Semantic roles & 50–950 ramp

primary
#4D27A1
secondary
#A3C063
accent
#E444B2
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4D27A1

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

Preview Lab → · Contrast checker → · Palette generator →

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