#4E2F9F#4E2F9F

#4E2F9F is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.3% C 0.170 H 289.5°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#4E2F9F
RGBrgb(78, 47, 159)
HSLhsl(257, 54%, 40%)
HSVhsv(257, 70%, 62%)
CMYKcmyk(50.9%, 70.4%, 0%, 37.6%)
CIE-LABlab(29.80, 41.84, -55.96)
CIE-LCHlch(29.80, 69.87, 306.78°)
OKLaboklab(41.32% 0.0568 -0.1606)
OKLCHoklch(41.32% 0.17 289.5)
XYZxyz(10.4146, 6.1555, 33.4335)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2F9F #809F2F
analogous
#2F489F #4E2F9F #862F9F
triadic
#4E2F9F #9F4E2F #2F9F4E
tetradic
#4E2F9F #9F2F48 #809F2F #2F9F86
square
#4E2F9F #9F2F48 #809F2F #2F9F86
split-complementary
#4E2F9F #9F862F #489F2F
monochromatic
#201341 #372170 #4E2F9F #6844C8 #8E73D6

Accessibility & contrast

On white

9.41
#4E2F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#4E2F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2F9F
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2F9F#FFFFFF#000000##FFFFFF
##4E2F9F1.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A2
Deuteranopia (green-blind)
#00439D
Tritanopia (blue-blind)
#324C63
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4e2f9f;
/* rgb */ color: rgb(78, 47, 159);
/* oklch */ color: oklch(41.3% 0.170 289.5);
Tailwind
colors: {
  custom: {
    50: '#876abc',
    500: '#4e2f9f',
    950: '#000000',
  },
}
SCSS
$custom: #4e2f9f;
$custom-light: #876abc;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2f9f",
  "rgb": {
    "r": 78,
    "g": 47,
    "b": 159
  },
  "hsl": {
    "h": 256.607,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.41316,
    "c": 0.17034,
    "h": 289.5
  },
  "luminance": 0.06156
}

Semantic roles & 50–950 ramp

primary
#4E2F9F
secondary
#A7BD6D
accent
#DE4AB5
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4E2F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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