#4E277B#4E277B

#4E277B is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.1% C 0.137 H 301.3°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#4E277B
RGBrgb(78, 39, 123)
HSLhsl(268, 52%, 32%)
HSVhsv(268, 68%, 48%)
CMYKcmyk(36.6%, 68.3%, 0%, 51.8%)
CIE-LABlab(25.26, 36.05, -41.03)
CIE-LCHlch(25.26, 54.62, 311.30°)
OKLaboklab(37.14% 0.071 -0.1167)
OKLCHoklch(37.14% 0.137 301.3)
XYZxyz(7.4417, 4.5008, 19.2117)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E277B #547B27
analogous
#272A7B #4E277B #78277B
triadic
#4E277B #7B4E27 #277B4E
tetradic
#4E277B #7B272A #547B27 #277B78
square
#4E277B #7B272A #547B27 #277B78
split-complementary
#4E277B #7B7827 #2A7B27
monochromatic
#130A1E #31184D #4E277B #6B36A9 #8A54C9

Accessibility & contrast

On white

11.05
#4E277B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#4E277B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E277B
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E277B#FFFFFF#000000##FFFFFF
##4E277B1.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7E
Deuteranopia (green-blind)
#013B79
Tritanopia (blue-blind)
#453A4D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4e277b;
/* rgb */ color: rgb(78, 39, 123);
/* oklch */ color: oklch(37.1% 0.137 301.3);
Tailwind
colors: {
  custom: {
    50: '#8364a2',
    500: '#4e277b',
    950: '#000000',
  },
}
SCSS
$custom: #4e277b;
$custom-light: #8364a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e277b",
  "rgb": {
    "r": 78,
    "g": 39,
    "b": 123
  },
  "hsl": {
    "h": 267.857,
    "s": 51.852,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37143,
    "c": 0.1366,
    "h": 301.3
  },
  "luminance": 0.04501
}

Semantic roles & 50–950 ramp

primary
#4E277B
secondary
#82AD51
accent
#DB4C99
background
#F8F6FA
surface
#EFEBF3
border
#CAC6CD
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #4E277B

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

Preview Lab → · Contrast checker → · Palette generator →

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