#4E2681#4E2681

#4E2681 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.5% C 0.145 H 299.4°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#4E2681
RGBrgb(78, 38, 129)
HSLhsl(266, 54%, 33%)
HSVhsv(266, 71%, 51%)
CMYKcmyk(39.5%, 70.5%, 0%, 49.4%)
CIE-LABlab(25.54, 38.22, -44.38)
CIE-LCHlch(25.54, 58.57, 310.73°)
OKLaboklab(37.49% 0.0714 -0.1265)
OKLCHoklch(37.49% 0.145 299.4)
XYZxyz(7.7965, 4.5908, 21.2400)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2681 #598126
analogous
#262B81 #4E2681 #7C2681
triadic
#4E2681 #814E26 #26814E
tetradic
#4E2681 #81262B #598126 #26817C
square
#4E2681 #81262B #598126 #26817C
split-complementary
#4E2681 #817C26 #2B8126
monochromatic
#150A22 #311852 #4E2681 #6B34B0 #8955CD

Accessibility & contrast

On white

10.95
#4E2681 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#4E2681 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2681
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2681#FFFFFF#000000##FFFFFF
##4E26811.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C84
Deuteranopia (green-blind)
#003C7F
Tritanopia (blue-blind)
#423C50
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4e2681;
/* rgb */ color: rgb(78, 38, 129);
/* oklch */ color: oklch(37.5% 0.145 299.4);
Tailwind
colors: {
  custom: {
    50: '#8463a6',
    500: '#4e2681',
    950: '#000000',
  },
}
SCSS
$custom: #4e2681;
$custom-light: #8463a6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2681",
  "rgb": {
    "r": 78,
    "g": 38,
    "b": 129
  },
  "hsl": {
    "h": 266.374,
    "s": 54.491,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37488,
    "c": 0.14526,
    "h": 299.4
  },
  "luminance": 0.04591
}

Semantic roles & 50–950 ramp

primary
#4E2681
secondary
#87B151
accent
#DE4A9D
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #4E2681

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

Preview Lab → · Contrast checker → · Palette generator →

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