#4E2FA7#4E2FA7

#4E2FA7 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.0% C 0.180 H 287.9°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#4E2FA7
RGBrgb(78, 47, 167)
HSLhsl(256, 56%, 42%)
HSVhsv(256, 72%, 65%)
CMYKcmyk(53.3%, 71.9%, 0%, 34.5%)
CIE-LABlab(30.50, 44.19, -59.65)
CIE-LCHlch(30.50, 74.24, 306.53°)
OKLaboklab(42.03% 0.0552 -0.1714)
OKLCHoklch(42.03% 0.18 287.9)
XYZxyz(11.1314, 6.4422, 37.2087)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2FA7 #88A72F
analogous
#2F4CA7 #4E2FA7 #8A2FA7
triadic
#4E2FA7 #A74E2F #2FA74E
tetradic
#4E2FA7 #A72F4C #88A72F #2FA78A
square
#4E2FA7 #A72F4C #88A72F #2FA78A
split-complementary
#4E2FA7 #A78A2F #4CA72F
monochromatic
#211447 #382277 #4E2FA7 #6A48CB #9178D9

Accessibility & contrast

On white

9.18
#4E2FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#4E2FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2FA7
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2FA7#FFFFFF#000000##FFFFFF
##4E2FA71.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAB
Deuteranopia (green-blind)
#0045A5
Tritanopia (blue-blind)
#2B4F68
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4e2fa7;
/* rgb */ color: rgb(78, 47, 167);
/* oklch */ color: oklch(42.0% 0.180 287.9);
Tailwind
colors: {
  custom: {
    50: '#896ac2',
    500: '#4e2fa7',
    950: '#000000',
  },
}
SCSS
$custom: #4e2fa7;
$custom-light: #896ac2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2fa7",
  "rgb": {
    "r": 78,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 255.5,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42031,
    "c": 0.1801,
    "h": 287.9
  },
  "luminance": 0.06443
}

Semantic roles & 50–950 ramp

primary
#4E2FA7
secondary
#ACC171
accent
#DF48B8
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4E2FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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