#4E2F9A#4E2F9A

#4E2F9A is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.9% C 0.164 H 290.6°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#4E2F9A
RGBrgb(78, 47, 154)
HSLhsl(257, 53%, 39%)
HSVhsv(257, 69%, 60%)
CMYKcmyk(49.4%, 69.5%, 0%, 39.6%)
CIE-LABlab(29.38, 40.38, -53.61)
CIE-LCHlch(29.38, 67.12, 306.98°)
OKLaboklab(40.88% 0.0577 -0.1537)
OKLCHoklch(40.88% 0.164 290.6)
XYZxyz(9.9895, 5.9854, 31.1945)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2F9A #7B9A2F
analogous
#2F469A #4E2F9A #842F9A
triadic
#4E2F9A #9A4E2F #2F9A4E
tetradic
#4E2F9A #9A2F46 #7B9A2F #2F9A84
square
#4E2F9A #9A2F46 #7B9A2F #2F9A84
split-complementary
#4E2F9A #9A842F #469A2F
monochromatic
#1F123C #36216B #4E2F9A #6741C5 #8D70D3

Accessibility & contrast

On white

9.56
#4E2F9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#4E2F9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2F9A
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2F9A#FFFFFF#000000##FFFFFF
##4E2F9A1.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479D
Deuteranopia (green-blind)
#004398
Tritanopia (blue-blind)
#354A60
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4e2f9a;
/* rgb */ color: rgb(78, 47, 154);
/* oklch */ color: oklch(40.9% 0.164 290.6);
Tailwind
colors: {
  custom: {
    50: '#876ab9',
    500: '#4e2f9a',
    950: '#000000',
  },
}
SCSS
$custom: #4e2f9a;
$custom-light: #876ab9;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2f9a",
  "rgb": {
    "r": 78,
    "g": 47,
    "b": 154
  },
  "hsl": {
    "h": 257.383,
    "s": 53.234,
    "l": 39.412
  },
  "oklch": {
    "l": 0.40879,
    "c": 0.16417,
    "h": 290.6
  },
  "luminance": 0.05986
}

Semantic roles & 50–950 ramp

primary
#4E2F9A
secondary
#A3BB6A
accent
#DD4BB2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4E2F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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