#4E2FA8#4E2FA8

#4E2FA8 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.1% C 0.181 H 287.7°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#4E2FA8
RGBrgb(78, 47, 168)
HSLhsl(255, 56%, 42%)
HSVhsv(255, 72%, 66%)
CMYKcmyk(53.6%, 72%, 0%, 34.1%)
CIE-LABlab(30.59, 44.48, -60.11)
CIE-LCHlch(30.59, 74.78, 306.50°)
OKLaboklab(42.12% 0.055 -0.1728)
OKLCHoklch(42.12% 0.181 287.7)
XYZxyz(11.2242, 6.4793, 37.6974)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2FA8 #89A82F
analogous
#2F4DA8 #4E2FA8 #8B2FA8
triadic
#4E2FA8 #A84E2F #2FA84E
tetradic
#4E2FA8 #A82F4D #89A82F #2FA88B
square
#4E2FA8 #A82F4D #89A82F #2FA88B
split-complementary
#4E2FA8 #A88B2F #4DA82F
monochromatic
#221448 #382278 #4E2FA8 #6A48CC #9178D9

Accessibility & contrast

On white

9.15
#4E2FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#4E2FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2FA8
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2FA8#FFFFFF#000000##FFFFFF
##4E2FA81.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAC
Deuteranopia (green-blind)
#0045A6
Tritanopia (blue-blind)
#2A4F68
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4e2fa8;
/* rgb */ color: rgb(78, 47, 168);
/* oklch */ color: oklch(42.1% 0.181 287.7);
Tailwind
colors: {
  custom: {
    50: '#896ac3',
    500: '#4e2fa8',
    950: '#000000',
  },
}
SCSS
$custom: #4e2fa8;
$custom-light: #896ac3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2fa8",
  "rgb": {
    "r": 78,
    "g": 47,
    "b": 168
  },
  "hsl": {
    "h": 255.372,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.42121,
    "c": 0.18131,
    "h": 287.7
  },
  "luminance": 0.0648
}

Semantic roles & 50–950 ramp

primary
#4E2FA8
secondary
#ADC171
accent
#E048B9
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0713
muted
#7D7A82

Preview Lab

Preview with #4E2FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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