#4E2F98#4E2F98

#4E2F98 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.7% C 0.162 H 291.0°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#4E2F98
RGBrgb(78, 47, 152)
HSLhsl(258, 53%, 39%)
HSVhsv(258, 69%, 60%)
CMYKcmyk(48.7%, 69.1%, 0%, 40.4%)
CIE-LABlab(29.21, 39.79, -52.66)
CIE-LCHlch(29.21, 66.01, 307.07°)
OKLaboklab(40.71% 0.058 -0.1509)
OKLCHoklch(40.71% 0.162 291)
XYZxyz(9.8243, 5.9194, 30.3246)
Luminance0.0592 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2F98 #79982F
analogous
#2F4598 #4E2F98 #832F98
triadic
#4E2F98 #984E2F #2F984E
tetradic
#4E2F98 #982F45 #79982F #2F9883
square
#4E2F98 #982F45 #79982F #2F9883
split-complementary
#4E2F98 #98832F #45982F
monochromatic
#1E123B #362169 #4E2F98 #6740C4 #8C6FD2

Accessibility & contrast

On white

9.62
#4E2F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2F98
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2F98#FFFFFF#000000##FFFFFF
##4E2F981.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479B
Deuteranopia (green-blind)
#004396
Tritanopia (blue-blind)
#36495F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4e2f98;
/* rgb */ color: rgb(78, 47, 152);
/* oklch */ color: oklch(40.7% 0.162 291.0);
Tailwind
colors: {
  custom: {
    50: '#866ab7',
    500: '#4e2f98',
    950: '#000000',
  },
}
SCSS
$custom: #4e2f98;
$custom-light: #866ab7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2f98",
  "rgb": {
    "r": 78,
    "g": 47,
    "b": 152
  },
  "hsl": {
    "h": 257.714,
    "s": 52.764,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40707,
    "c": 0.16168,
    "h": 291
  },
  "luminance": 0.0592
}

Semantic roles & 50–950 ramp

primary
#4E2F98
secondary
#A2BA69
accent
#DC4CB2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4E2F98

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

Preview Lab → · Contrast checker → · Palette generator →

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