#4E27BD#4E27BD

#4E27BD is a dark, highly saturated violet. Relative luminance 0.067; OKLCH L 43.2% C 0.214 H 285.0°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#4E27BD
RGBrgb(78, 39, 189)
HSLhsl(256, 66%, 45%)
HSVhsv(256, 79%, 74%)
CMYKcmyk(58.7%, 79.4%, 0%, 25.9%)
CIE-LABlab(31.22, 54.42, -71.59)
CIE-LCHlch(31.22, 89.93, 307.24°)
OKLaboklab(43.17% 0.0554 -0.2063)
OKLCHoklch(43.17% 0.214 285)
XYZxyz(13.0499, 6.7440, 48.7483)
Luminance0.0674 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E27BD #96BD27
analogous
#274BBD #4E27BD #9927BD
triadic
#4E27BD #BD4E27 #27BD4E
tetradic
#4E27BD #BD274B #96BD27 #27BD99
square
#4E27BD #BD274B #96BD27 #27BD99
split-complementary
#4E27BD #BD9927 #4BBD27
monochromatic
#241258 #391D8A #4E27BD #6E48D9 #967BE4

Accessibility & contrast

On white

8.94
#4E27BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#4E27BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E27BD
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E27BD#FFFFFF#000000##FFFFFF
##4E27BD1.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DC1
Deuteranopia (green-blind)
#0045BA
Tritanopia (blue-blind)
#0A5472
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4e27bd;
/* rgb */ color: rgb(78, 39, 189);
/* oklch */ color: oklch(43.2% 0.214 285.0);
Tailwind
colors: {
  custom: {
    50: '#8d67d2',
    500: '#4e27bd',
    950: '#000000',
  },
}
SCSS
$custom: #4e27bd;
$custom-light: #8d67d2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e27bd",
  "rgb": {
    "r": 78,
    "g": 39,
    "b": 189
  },
  "hsl": {
    "h": 255.6,
    "s": 65.789,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43167,
    "c": 0.2136,
    "h": 285
  },
  "luminance": 0.06745
}

Semantic roles & 50–950 ramp

primary
#4E27BD
secondary
#B5CC74
accent
#E93FBD
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0614
muted
#7E7A83

Preview Lab

Preview with #4E27BD

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

Preview Lab → · Contrast checker → · Palette generator →

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