#4E2FA9#4E2FA9

#4E2FA9 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.2% C 0.183 H 287.5°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#4E2FA9
RGBrgb(78, 47, 169)
HSLhsl(255, 56%, 42%)
HSVhsv(255, 72%, 66%)
CMYKcmyk(53.8%, 72.2%, 0%, 33.7%)
CIE-LABlab(30.68, 44.78, -60.56)
CIE-LCHlch(30.68, 75.32, 306.48°)
OKLaboklab(42.21% 0.0548 -0.1741)
OKLCHoklch(42.21% 0.183 287.5)
XYZxyz(11.3177, 6.5167, 38.1899)
Luminance0.0652 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2FA9 #8AA92F
analogous
#2F4DA9 #4E2FA9 #8B2FA9
triadic
#4E2FA9 #A94E2F #2FA94E
tetradic
#4E2FA9 #A92F4D #8AA92F #2FA98B
square
#4E2FA9 #A92F4D #8AA92F #2FA98B
split-complementary
#4E2FA9 #A98B2F #4DA92F
monochromatic
#221449 #382279 #4E2FA9 #6A49CC #9179DA

Accessibility & contrast

On white

9.12
#4E2FA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2FA9
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2FA9#FFFFFF#000000##FFFFFF
##4E2FA91.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAD
Deuteranopia (green-blind)
#0045A7
Tritanopia (blue-blind)
#294F69
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4e2fa9;
/* rgb */ color: rgb(78, 47, 169);
/* oklch */ color: oklch(42.2% 0.183 287.5);
Tailwind
colors: {
  custom: {
    50: '#896ac4',
    500: '#4e2fa9',
    950: '#000000',
  },
}
SCSS
$custom: #4e2fa9;
$custom-light: #896ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2fa9",
  "rgb": {
    "r": 78,
    "g": 47,
    "b": 169
  },
  "hsl": {
    "h": 255.246,
    "s": 56.481,
    "l": 42.353
  },
  "oklch": {
    "l": 0.42213,
    "c": 0.18252,
    "h": 287.5
  },
  "luminance": 0.06517
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E2FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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