#4E279C#4E279C

#4E279C is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.0% C 0.176 H 291.6°. Best body text is #FFFFFF at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#4E279C
RGBrgb(78, 39, 156)
HSLhsl(260, 60%, 38%)
HSVhsv(260, 75%, 61%)
CMYKcmyk(50%, 75%, 0%, 38.8%)
CIE-LABlab(28.04, 45.18, -57.02)
CIE-LCHlch(28.04, 72.75, 308.39°)
OKLaboklab(39.98% 0.0648 -0.1637)
OKLCHoklch(39.98% 0.176 291.6)
XYZxyz(9.8665, 5.4707, 31.9821)
Luminance0.0547 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E279C #759C27
analogous
#273A9C #4E279C #88279C
triadic
#4E279C #9C4E27 #279C4E
tetradic
#4E279C #9C273A #759C27 #279C88
square
#4E279C #9C273A #759C27 #279C88
split-complementary
#4E279C #9C8827 #3A9C27
monochromatic
#1D0F3A #361B6B #4E279C #6734CC #8B65D8

Accessibility & contrast

On white

10.03
#4E279C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#4E279C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E279C
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E279C#FFFFFF#000000##FFFFFF
##4E279C1.0010.032.0910.03
#FFFFFF10.031.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449F
Deuteranopia (green-blind)
#00409A
Tritanopia (blue-blind)
#34465F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4e279c;
/* rgb */ color: rgb(78, 39, 156);
/* oklch */ color: oklch(40.0% 0.176 291.6);
Tailwind
colors: {
  custom: {
    50: '#8865ba',
    500: '#4e279c',
    950: '#000000',
  },
}
SCSS
$custom: #4e279c;
$custom-light: #8865ba;
$custom-dark: #000000;
JSON
{
  "hex": "#4e279c",
  "rgb": {
    "r": 78,
    "g": 39,
    "b": 156
  },
  "hsl": {
    "h": 260,
    "s": 60,
    "l": 38.235
  },
  "oklch": {
    "l": 0.39981,
    "c": 0.17602,
    "h": 291.6
  },
  "luminance": 0.05471
}

Semantic roles & 50–950 ramp

primary
#4E279C
secondary
#9FBE61
accent
#E345AE
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4E279C

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

Preview Lab → · Contrast checker → · Palette generator →

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