#4D27AB#4D27AB

#4D27AB is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.3% C 0.193 H 287.8°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#4D27AB
RGBrgb(77, 39, 171)
HSLhsl(257, 63%, 41%)
HSVhsv(257, 77%, 67%)
CMYKcmyk(55%, 77.2%, 0%, 32.9%)
CIE-LABlab(29.33, 49.25, -63.98)
CIE-LCHlch(29.33, 80.74, 307.59°)
OKLaboklab(41.3% 0.0592 -0.1841)
OKLCHoklch(41.3% 0.193 287.8)
XYZxyz(11.1346, 5.9685, 39.0855)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D27AB #85AB27
analogous
#2743AB #4D27AB #8F27AB
triadic
#4D27AB #AB4D27 #27AB4D
tetradic
#4D27AB #AB2743 #85AB27 #27AB8F
square
#4D27AB #AB2743 #85AB27 #27AB8F
split-complementary
#4D27AB #AB8F27 #43AB27
monochromatic
#201047 #371C79 #4D27AB #683DD3 #8F6EDE

Accessibility & contrast

On white

9.57
#4D27AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#4D27AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D27AB
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D27AB#FFFFFF#000000##FFFFFF
##4D27AB1.009.572.199.57
#FFFFFF9.571.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AF
Deuteranopia (green-blind)
#0042A9
Tritanopia (blue-blind)
#254C68
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4d27ab;
/* rgb */ color: rgb(77, 39, 171);
/* oklch */ color: oklch(41.3% 0.193 287.8);
Tailwind
colors: {
  custom: {
    50: '#8966c5',
    500: '#4d27ab',
    950: '#000000',
  },
}
SCSS
$custom: #4d27ab;
$custom-light: #8966c5;
$custom-dark: #000000;
JSON
{
  "hex": "#4d27ab",
  "rgb": {
    "r": 77,
    "g": 39,
    "b": 171
  },
  "hsl": {
    "h": 257.273,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41295,
    "c": 0.19337,
    "h": 287.8
  },
  "luminance": 0.05969
}

Semantic roles & 50–950 ramp

primary
#4D27AB
secondary
#AAC569
accent
#E642B7
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4D27AB

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

Preview Lab → · Contrast checker → · Palette generator →

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