#4E2F96#4E2F96

#4E2F96 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.5% C 0.159 H 291.5°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#4E2F96
RGBrgb(78, 47, 150)
HSLhsl(258, 52%, 39%)
HSVhsv(258, 69%, 59%)
CMYKcmyk(48%, 68.7%, 0%, 41.2%)
CIE-LABlab(29.04, 39.20, -51.71)
CIE-LCHlch(29.04, 64.89, 307.17°)
OKLaboklab(40.54% 0.0583 -0.1481)
OKLCHoklch(40.54% 0.159 291.5)
XYZxyz(9.6619, 5.8544, 29.4692)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2F96 #77962F
analogous
#2F4396 #4E2F96 #812F96
triadic
#4E2F96 #964E2F #2F964E
tetradic
#4E2F96 #962F43 #77962F #2F9681
square
#4E2F96 #962F43 #77962F #2F9681
split-complementary
#4E2F96 #96812F #43962F
monochromatic
#1E1239 #362067 #4E2F96 #673FC3 #8C6ED2

Accessibility & contrast

On white

9.67
#4E2F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#4E2F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2F96
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2F96#FFFFFF#000000##FFFFFF
##4E2F961.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004699
Deuteranopia (green-blind)
#004294
Tritanopia (blue-blind)
#38485E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4e2f96;
/* rgb */ color: rgb(78, 47, 150);
/* oklch */ color: oklch(40.5% 0.159 291.5);
Tailwind
colors: {
  custom: {
    50: '#866ab6',
    500: '#4e2f96',
    950: '#000000',
  },
}
SCSS
$custom: #4e2f96;
$custom-light: #866ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2f96",
  "rgb": {
    "r": 78,
    "g": 47,
    "b": 150
  },
  "hsl": {
    "h": 258.058,
    "s": 52.284,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40536,
    "c": 0.15918,
    "h": 291.5
  },
  "luminance": 0.05855
}

Semantic roles & 50–950 ramp

primary
#4E2F96
secondary
#A1B968
accent
#DC4CB0
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4E2F96

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

Preview Lab → · Contrast checker → · Palette generator →

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