#4E2F8F#4E2F8F

#4E2F8F is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.0% C 0.150 H 293.2°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#4E2F8F
RGBrgb(78, 47, 143)
HSLhsl(259, 51%, 37%)
HSVhsv(259, 67%, 56%)
CMYKcmyk(45.5%, 67.1%, 0%, 43.9%)
CIE-LABlab(28.47, 37.17, -48.33)
CIE-LCHlch(28.47, 60.97, 307.56°)
OKLaboklab(39.95% 0.0593 -0.1382)
OKLCHoklch(39.95% 0.15 293.2)
XYZxyz(9.1150, 5.6356, 26.5888)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2F8F #708F2F
analogous
#2F408F #4E2F8F #7E2F8F
triadic
#4E2F8F #8F4E2F #2F8F4E
tetradic
#4E2F8F #8F2F40 #708F2F #2F8F7E
square
#4E2F8F #8F2F40 #708F2F #2F8F7E
split-complementary
#4E2F8F #8F7E2F #408F2F
monochromatic
#1C1133 #352061 #4E2F8F #673EBD #8B6ACE

Accessibility & contrast

On white

9.87
#4E2F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#4E2F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2F8F
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2F8F#FFFFFF#000000##FFFFFF
##4E2F8F1.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004492
Deuteranopia (green-blind)
#00418D
Tritanopia (blue-blind)
#3B465B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4e2f8f;
/* rgb */ color: rgb(78, 47, 143);
/* oklch */ color: oklch(40.0% 0.150 293.2);
Tailwind
colors: {
  custom: {
    50: '#8569b1',
    500: '#4e2f8f',
    950: '#000000',
  },
}
SCSS
$custom: #4e2f8f;
$custom-light: #8569b1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2f8f",
  "rgb": {
    "r": 78,
    "g": 47,
    "b": 143
  },
  "hsl": {
    "h": 259.375,
    "s": 50.526,
    "l": 37.255
  },
  "oklch": {
    "l": 0.3995,
    "c": 0.15036,
    "h": 293.2
  },
  "luminance": 0.05636
}

Semantic roles & 50–950 ramp

primary
#4E2F8F
secondary
#9BB565
accent
#DA4EAD
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4E2F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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