#4E277E#4E277E

#4E277E is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.4% C 0.140 H 300.2°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#4E277E
RGBrgb(78, 39, 126)
HSLhsl(267, 53%, 32%)
HSVhsv(267, 69%, 49%)
CMYKcmyk(38.1%, 69%, 0%, 50.6%)
CIE-LABlab(25.49, 36.86, -42.56)
CIE-LCHlch(25.49, 56.30, 310.90°)
OKLaboklab(37.38% 0.0706 -0.1212)
OKLCHoklch(37.38% 0.14 300.2)
XYZxyz(7.6324, 4.5770, 20.2160)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E277E #577E27
analogous
#272B7E #4E277E #7A277E
triadic
#4E277E #7E4E27 #277E4E
tetradic
#4E277E #7E272B #577E27 #277E7A
square
#4E277E #7E272B #577E27 #277E7A
split-complementary
#4E277E #7E7A27 #2B7E27
monochromatic
#140A21 #31194F #4E277E #6B35AD #8A55CA

Accessibility & contrast

On white

10.96
#4E277E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#4E277E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E277E
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E277E#FFFFFF#000000##FFFFFF
##4E277E1.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C81
Deuteranopia (green-blind)
#003C7C
Tritanopia (blue-blind)
#433B4F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4e277e;
/* rgb */ color: rgb(78, 39, 126);
/* oklch */ color: oklch(37.4% 0.140 300.2);
Tailwind
colors: {
  custom: {
    50: '#8464a4',
    500: '#4e277e',
    950: '#000000',
  },
}
SCSS
$custom: #4e277e;
$custom-light: #8464a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e277e",
  "rgb": {
    "r": 78,
    "g": 39,
    "b": 126
  },
  "hsl": {
    "h": 266.897,
    "s": 52.727,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37383,
    "c": 0.14025,
    "h": 300.2
  },
  "luminance": 0.04577
}

Semantic roles & 50–950 ramp

primary
#4E277E
secondary
#85AF52
accent
#DC4C9B
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #4E277E

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

Preview Lab → · Contrast checker → · Palette generator →

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