#4E2E98#4E2E98

#4E2E98 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.6% C 0.163 H 291.2°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#4E2E98
RGBrgb(78, 46, 152)
HSLhsl(258, 54%, 39%)
HSVhsv(258, 70%, 60%)
CMYKcmyk(48.7%, 69.7%, 0%, 40.4%)
CIE-LABlab(29.01, 40.35, -52.99)
CIE-LCHlch(29.01, 66.60, 307.28°)
OKLaboklab(40.56% 0.059 -0.1519)
OKLCHoklch(40.56% 0.163 291.2)
XYZxyz(9.7848, 5.8403, 30.3114)
Luminance0.0584 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2E98 #78982E
analogous
#2E4398 #4E2E98 #832E98
triadic
#4E2E98 #984E2E #2E984E
tetradic
#4E2E98 #982E43 #78982E #2E9883
square
#4E2E98 #982E43 #78982E #2E9883
split-complementary
#4E2E98 #98832E #43982E
monochromatic
#1E123A #362069 #4E2E98 #673EC5 #8C6DD3

Accessibility & contrast

On white

9.69
#4E2E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2E98
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2E98#FFFFFF#000000##FFFFFF
##4E2E981.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469B
Deuteranopia (green-blind)
#004296
Tritanopia (blue-blind)
#36495F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4e2e98;
/* rgb */ color: rgb(78, 46, 152);
/* oklch */ color: oklch(40.6% 0.163 291.2);
Tailwind
colors: {
  custom: {
    50: '#8769b7',
    500: '#4e2e98',
    950: '#000000',
  },
}
SCSS
$custom: #4e2e98;
$custom-light: #8769b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2e98",
  "rgb": {
    "r": 78,
    "g": 46,
    "b": 152
  },
  "hsl": {
    "h": 258.113,
    "s": 53.535,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40562,
    "c": 0.16294,
    "h": 291.2
  },
  "luminance": 0.05841
}

Semantic roles & 50–950 ramp

primary
#4E2E98
secondary
#A1BA68
accent
#DD4BB1
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4E2E98

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

Preview Lab → · Contrast checker → · Palette generator →

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