#4D27BB#4D27BB

#4D27BB is a dark, highly saturated violet. Relative luminance 0.066; OKLCH L 42.9% C 0.211 H 284.9°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#4D27BB
RGBrgb(77, 39, 187)
HSLhsl(255, 65%, 44%)
HSVhsv(255, 79%, 73%)
CMYKcmyk(58.8%, 79.1%, 0%, 26.7%)
CIE-LABlab(30.92, 53.75, -70.91)
CIE-LCHlch(30.92, 88.98, 307.16°)
OKLaboklab(42.87% 0.0545 -0.2043)
OKLCHoklch(42.87% 0.211 284.9)
XYZxyz(12.7530, 6.6159, 47.6091)
Luminance0.0662 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D27BB #95BB27
analogous
#274BBB #4D27BB #9727BB
triadic
#4D27BB #BB4D27 #27BB4D
tetradic
#4D27BB #BB274B #95BB27 #27BB97
square
#4D27BB #BB274B #95BB27 #27BB97
split-complementary
#4D27BB #BB9727 #4BBB27
monochromatic
#231256 #381C88 #4D27BB #6C47D9 #9479E3

Accessibility & contrast

On white

9.04
#4D27BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#4D27BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D27BB
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D27BB#FFFFFF#000000##FFFFFF
##4D27BB1.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBF
Deuteranopia (green-blind)
#0044B8
Tritanopia (blue-blind)
#095371
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4d27bb;
/* rgb */ color: rgb(77, 39, 187);
/* oklch */ color: oklch(42.9% 0.211 284.9);
Tailwind
colors: {
  custom: {
    50: '#8c67d1',
    500: '#4d27bb',
    950: '#000000',
  },
}
SCSS
$custom: #4d27bb;
$custom-light: #8c67d1;
$custom-dark: #000000;
JSON
{
  "hex": "#4d27bb",
  "rgb": {
    "r": 77,
    "g": 39,
    "b": 187
  },
  "hsl": {
    "h": 255.405,
    "s": 65.487,
    "l": 44.314
  },
  "oklch": {
    "l": 0.42874,
    "c": 0.21146,
    "h": 284.9
  },
  "luminance": 0.06617
}

Semantic roles & 50–950 ramp

primary
#4D27BB
secondary
#B4CB73
accent
#E83FBD
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0D0614
muted
#7E7A83

Preview Lab

Preview with #4D27BB

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

Preview Lab → · Contrast checker → · Palette generator →

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