#4E2F97#4E2F97

#4E2F97 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.6% C 0.160 H 291.3°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#4E2F97
RGBrgb(78, 47, 151)
HSLhsl(258, 53%, 39%)
HSVhsv(258, 69%, 59%)
CMYKcmyk(48.3%, 68.9%, 0%, 40.8%)
CIE-LABlab(29.12, 39.50, -52.19)
CIE-LCHlch(29.12, 65.45, 307.12°)
OKLaboklab(40.62% 0.0582 -0.1495)
OKLCHoklch(40.62% 0.16 291.3)
XYZxyz(9.7427, 5.8867, 29.8951)
Luminance0.0589 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2F97 #78972F
analogous
#2F4497 #4E2F97 #822F97
triadic
#4E2F97 #974E2F #2F974E
tetradic
#4E2F97 #972F44 #78972F #2F9782
square
#4E2F97 #972F44 #78972F #2F9782
split-complementary
#4E2F97 #97822F #44972F
monochromatic
#1E123A #362068 #4E2F97 #6740C3 #8C6ED2

Accessibility & contrast

On white

9.64
#4E2F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#4E2F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2F97
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2F97#FFFFFF#000000##FFFFFF
##4E2F971.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469A
Deuteranopia (green-blind)
#004295
Tritanopia (blue-blind)
#37495F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4e2f97;
/* rgb */ color: rgb(78, 47, 151);
/* oklch */ color: oklch(40.6% 0.160 291.3);
Tailwind
colors: {
  custom: {
    50: '#866ab6',
    500: '#4e2f97',
    950: '#000000',
  },
}
SCSS
$custom: #4e2f97;
$custom-light: #866ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2f97",
  "rgb": {
    "r": 78,
    "g": 47,
    "b": 151
  },
  "hsl": {
    "h": 257.885,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40621,
    "c": 0.16043,
    "h": 291.3
  },
  "luminance": 0.05887
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E2F97

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

Preview Lab → · Contrast checker → · Palette generator →

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