#4D27A4#4D27A4

#4D27A4 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.6% C 0.185 H 289.3°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#4D27A4
RGBrgb(77, 39, 164)
HSLhsl(258, 62%, 40%)
HSVhsv(258, 76%, 64%)
CMYKcmyk(53%, 76.2%, 0%, 35.7%)
CIE-LABlab(28.67, 47.28, -60.86)
CIE-LCHlch(28.67, 77.06, 307.84°)
OKLaboklab(40.62% 0.0612 -0.1749)
OKLCHoklch(40.62% 0.185 289.3)
XYZxyz(10.4850, 5.7087, 35.6642)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D27A4 #7EA427
analogous
#2740A4 #4D27A4 #8C27A4
triadic
#4D27A4 #A44D27 #27A44D
tetradic
#4D27A4 #A42740 #7EA427 #27A48C
square
#4D27A4 #A42740 #7EA427 #27A48C
split-complementary
#4D27A4 #A48C27 #40A427
monochromatic
#1F0F41 #361B73 #4D27A4 #6638D0 #8C6ADC

Accessibility & contrast

On white

9.80
#4D27A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#4D27A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D27A4
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D27A4#FFFFFF#000000##FFFFFF
##4D27A41.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A8
Deuteranopia (green-blind)
#0040A2
Tritanopia (blue-blind)
#2C4A64
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4d27a4;
/* rgb */ color: rgb(77, 39, 164);
/* oklch */ color: oklch(40.6% 0.185 289.3);
Tailwind
colors: {
  custom: {
    50: '#8866c0',
    500: '#4d27a4',
    950: '#000000',
  },
}
SCSS
$custom: #4d27a4;
$custom-light: #8866c0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d27a4",
  "rgb": {
    "r": 77,
    "g": 39,
    "b": 164
  },
  "hsl": {
    "h": 258.24,
    "s": 61.576,
    "l": 39.804
  },
  "oklch": {
    "l": 0.40624,
    "c": 0.18532,
    "h": 289.3
  },
  "luminance": 0.05709
}

Semantic roles & 50–950 ramp

primary
#4D27A4
secondary
#A6C265
accent
#E543B4
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4D27A4

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

Preview Lab → · Contrast checker → · Palette generator →

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