#4E0F7D#4E0F7D

#4E0F7D is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.7% C 0.166 H 304.2°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).

Color values

HEX#4E0F7D
RGBrgb(78, 15, 125)
HSLhsl(274, 79%, 27%)
HSVhsv(274, 88%, 49%)
CMYKcmyk(37.6%, 88%, 0%, 51%)
CIE-LABlab(21.73, 47.07, -48.05)
CIE-LCHlch(21.73, 67.26, 314.41°)
OKLaboklab(34.71% 0.0932 -0.1371)
OKLCHoklch(34.71% 0.166 304.2)
XYZxyz(7.0135, 3.4420, 19.6929)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E0F7D #3E7D0F
analogous
#170F7D #4E0F7D #7D0F75
triadic
#4E0F7D #7D4E0F #0F7D4E
tetradic
#4E0F7D #7D170F #3E7D0F #0F757D
square
#4E0F7D #7D170F #3E7D0F #0F757D
split-complementary
#4E0F7D #757D0F #0F7D17
monochromatic
#11031B #2C0846 #4E0F7D #7016B4 #9122E4

Accessibility & contrast

On white

12.44
#4E0F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#4E0F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E0F7D
12.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E0F7D#FFFFFF#000000##FFFFFF
##4E0F7D1.0012.441.6912.44
#FFFFFF12.441.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#00347B
Tritanopia (blue-blind)
#442F49
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4e0f7d;
/* rgb */ color: rgb(78, 15, 125);
/* oklch */ color: oklch(34.7% 0.166 304.2);
Tailwind
colors: {
  custom: {
    50: '#8558a4',
    500: '#4e0f7d',
    950: '#000000',
  },
}
SCSS
$custom: #4e0f7d;
$custom-light: #8558a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e0f7d",
  "rgb": {
    "r": 78,
    "g": 15,
    "b": 125
  },
  "hsl": {
    "h": 274.364,
    "s": 78.571,
    "l": 27.451
  },
  "oklch": {
    "l": 0.34708,
    "c": 0.16581,
    "h": 304.2
  },
  "luminance": 0.03442
}

Semantic roles & 50–950 ramp

primary
#4E0F7D
secondary
#6BB434
accent
#F53386
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4E0F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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