#4E2F9D#4E2F9D

#4E2F9D is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.1% C 0.168 H 289.9°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#4E2F9D
RGBrgb(78, 47, 157)
HSLhsl(257, 54%, 40%)
HSVhsv(257, 70%, 62%)
CMYKcmyk(50.3%, 70.1%, 0%, 38.4%)
CIE-LABlab(29.63, 41.25, -55.03)
CIE-LCHlch(29.63, 68.77, 306.86°)
OKLaboklab(41.14% 0.0572 -0.1578)
OKLCHoklch(41.14% 0.168 289.9)
XYZxyz(10.2425, 6.0866, 32.5269)
Luminance0.0609 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2F9D #7E9D2F
analogous
#2F479D #4E2F9D #852F9D
triadic
#4E2F9D #9D4E2F #2F9D4E
tetradic
#4E2F9D #9D2F47 #7E9D2F #2F9D85
square
#4E2F9D #9D2F47 #7E9D2F #2F9D85
split-complementary
#4E2F9D #9D852F #479D2F
monochromatic
#1F133F #37216E #4E2F9D #6843C7 #8E72D5

Accessibility & contrast

On white

9.47
#4E2F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#4E2F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2F9D
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2F9D#FFFFFF#000000##FFFFFF
##4E2F9D1.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A0
Deuteranopia (green-blind)
#00439B
Tritanopia (blue-blind)
#334B62
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4e2f9d;
/* rgb */ color: rgb(78, 47, 157);
/* oklch */ color: oklch(41.1% 0.168 289.9);
Tailwind
colors: {
  custom: {
    50: '#876abb',
    500: '#4e2f9d',
    950: '#000000',
  },
}
SCSS
$custom: #4e2f9d;
$custom-light: #876abb;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2f9d",
  "rgb": {
    "r": 78,
    "g": 47,
    "b": 157
  },
  "hsl": {
    "h": 256.909,
    "s": 53.922,
    "l": 40
  },
  "oklch": {
    "l": 0.4114,
    "c": 0.16788,
    "h": 289.9
  },
  "luminance": 0.06087
}

Semantic roles & 50–950 ramp

primary
#4E2F9D
secondary
#A6BC6B
accent
#DD4BB4
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4E2F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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