#4E27B3#4E27B3

#4E27B3 is a dark, highly saturated violet. Relative luminance 0.063; OKLCH L 42.2% C 0.202 H 286.8°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#4E27B3
RGBrgb(78, 39, 179)
HSLhsl(257, 64%, 43%)
HSVhsv(257, 78%, 70%)
CMYKcmyk(56.4%, 78.2%, 0%, 29.8%)
CIE-LABlab(30.22, 51.63, -67.31)
CIE-LCHlch(30.22, 84.83, 307.49°)
OKLaboklab(42.17% 0.0584 -0.1938)
OKLCHoklch(42.17% 0.202 286.8)
XYZxyz(12.0017, 6.3247, 43.2275)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E27B3 #8CB327
analogous
#2746B3 #4E27B3 #9427B3
triadic
#4E27B3 #B34E27 #27B34E
tetradic
#4E27B3 #B32746 #8CB327 #27B394
square
#4E27B3 #B32746 #8CB327 #27B394
split-complementary
#4E27B3 #B39427 #46B327
monochromatic
#22114E #381C81 #4E27B3 #6B41D6 #9274E1

Accessibility & contrast

On white

9.27
#4E27B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#4E27B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E27B3
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E27B3#FFFFFF#000000##FFFFFF
##4E27B31.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB7
Deuteranopia (green-blind)
#0043B0
Tritanopia (blue-blind)
#1F506C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4e27b3;
/* rgb */ color: rgb(78, 39, 179);
/* oklch */ color: oklch(42.2% 0.202 286.8);
Tailwind
colors: {
  custom: {
    50: '#8b66cb',
    500: '#4e27b3',
    950: '#000000',
  },
}
SCSS
$custom: #4e27b3;
$custom-light: #8b66cb;
$custom-dark: #000000;
JSON
{
  "hex": "#4e27b3",
  "rgb": {
    "r": 78,
    "g": 39,
    "b": 179
  },
  "hsl": {
    "h": 256.714,
    "s": 64.22,
    "l": 42.745
  },
  "oklch": {
    "l": 0.42173,
    "c": 0.20239,
    "h": 286.8
  },
  "luminance": 0.06325
}

Semantic roles & 50–950 ramp

primary
#4E27B3
secondary
#AFC86E
accent
#E741B9
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4E27B3

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

Preview Lab → · Contrast checker → · Palette generator →

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