#4D27C9#4D27C9

#4D27C9 is a dark, highly saturated violet. Relative luminance 0.072; OKLCH L 44.3% C 0.227 H 282.7°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#4D27C9
RGBrgb(77, 39, 201)
HSLhsl(254, 68%, 47%)
HSVhsv(254, 81%, 79%)
CMYKcmyk(61.7%, 80.6%, 0%, 21.2%)
CIE-LABlab(32.36, 57.65, -76.76)
CIE-LCHlch(32.36, 96.00, 306.91°)
OKLaboklab(44.3% 0.0501 -0.2214)
OKLCHoklch(44.3% 0.227 282.7)
XYZxyz(14.3254, 7.2448, 55.8905)
Luminance0.0725 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D27C9 #A3C927
analogous
#2752C9 #4D27C9 #9E27C9
triadic
#4D27C9 #C94D27 #27C94D
tetradic
#4D27C9 #C92752 #A3C927 #27C99E
square
#4D27C9 #C92752 #A3C927 #27C99E
split-complementary
#4D27C9 #C99E27 #52C927
monochromatic
#261362 #391D96 #4D27C9 #7150DD #9B83E7

Accessibility & contrast

On white

8.57
#4D27C9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#4D27C9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D27C9
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D27C9#FFFFFF#000000##FFFFFF
##4D27C91.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051CD
Deuteranopia (green-blind)
#0046C6
Tritanopia (blue-blind)
#005979
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4d27c9;
/* rgb */ color: rgb(77, 39, 201);
/* oklch */ color: oklch(44.3% 0.227 282.7);
Tailwind
colors: {
  custom: {
    50: '#8e68db',
    500: '#4d27c9',
    950: '#000000',
  },
}
SCSS
$custom: #4d27c9;
$custom-light: #8e68db;
$custom-dark: #000000;
JSON
{
  "hex": "#4d27c9",
  "rgb": {
    "r": 77,
    "g": 39,
    "b": 201
  },
  "hsl": {
    "h": 254.074,
    "s": 67.5,
    "l": 47.059
  },
  "oklch": {
    "l": 0.44302,
    "c": 0.22699,
    "h": 282.7
  },
  "luminance": 0.07246
}

Semantic roles & 50–950 ramp

primary
#4D27C9
secondary
#BCD07C
accent
#EA3DC2
background
#F9F6FD
surface
#F2EBFB
border
#CCC6D4
text
#0E0615
muted
#7E7A83

Preview Lab

Preview with #4D27C9

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

Preview Lab → · Contrast checker → · Palette generator →

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