#4D27B6#4D27B6

#4D27B6 is a dark, highly saturated violet. Relative luminance 0.064; OKLCH L 42.4% C 0.206 H 285.8°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#4D27B6
RGBrgb(77, 39, 182)
HSLhsl(256, 65%, 43%)
HSVhsv(256, 79%, 71%)
CMYKcmyk(57.7%, 78.6%, 0%, 28.6%)
CIE-LABlab(30.41, 52.35, -68.77)
CIE-LCHlch(30.41, 86.43, 307.28°)
OKLaboklab(42.37% 0.056 -0.1981)
OKLCHoklch(42.37% 0.206 285.8)
XYZxyz(12.2270, 6.4055, 44.8390)
Luminance0.0641 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D27B6 #90B627
analogous
#2748B6 #4D27B6 #9427B6
triadic
#4D27B6 #B64D27 #27B64D
tetradic
#4D27B6 #B62748 #90B627 #27B694
square
#4D27B6 #B62748 #90B627 #27B694
split-complementary
#4D27B6 #B69427 #48B627
monochromatic
#221151 #381C84 #4D27B6 #6B43D7 #9276E2

Accessibility & contrast

On white

9.21
#4D27B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#4D27B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D27B6
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D27B6#FFFFFF#000000##FFFFFF
##4D27B61.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BBA
Deuteranopia (green-blind)
#0043B3
Tritanopia (blue-blind)
#16516E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4d27b6;
/* rgb */ color: rgb(77, 39, 182);
/* oklch */ color: oklch(42.4% 0.206 285.8);
Tailwind
colors: {
  custom: {
    50: '#8b67cd',
    500: '#4d27b6',
    950: '#000000',
  },
}
SCSS
$custom: #4d27b6;
$custom-light: #8b67cd;
$custom-dark: #000000;
JSON
{
  "hex": "#4d27b6",
  "rgb": {
    "r": 77,
    "g": 39,
    "b": 182
  },
  "hsl": {
    "h": 255.944,
    "s": 64.706,
    "l": 43.333
  },
  "oklch": {
    "l": 0.42374,
    "c": 0.20586,
    "h": 285.8
  },
  "luminance": 0.06406
}

Semantic roles & 50–950 ramp

primary
#4D27B6
secondary
#B1C970
accent
#E840BB
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0614
muted
#7E7A82

Preview Lab

Preview with #4D27B6

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

Preview Lab → · Contrast checker → · Palette generator →

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