#4E2D81#4E2D81

#4E2D81 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.5% C 0.135 H 297.8°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#4E2D81
RGBrgb(78, 45, 129)
HSLhsl(264, 48%, 34%)
HSVhsv(264, 65%, 51%)
CMYKcmyk(39.5%, 65.1%, 0%, 49.4%)
CIE-LABlab(26.97, 34.31, -42.06)
CIE-LCHlch(26.97, 54.28, 309.20°)
OKLaboklab(38.52% 0.0631 -0.1197)
OKLCHoklch(38.52% 0.135 297.8)
XYZxyz(8.0417, 5.0813, 21.3217)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2D81 #60812D
analogous
#2D3681 #4E2D81 #782D81
triadic
#4E2D81 #814E2D #2D814E
tetradic
#4E2D81 #812D36 #60812D #2D8178
square
#4E2D81 #812D36 #60812D #2D8178
split-complementary
#4E2D81 #81782D #36812D
monochromatic
#170D26 #331D54 #4E2D81 #693DAE #8961C8

Accessibility & contrast

On white

10.42
#4E2D81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4E2D81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2D81
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2D81#FFFFFF#000000##FFFFFF
##4E2D811.0010.422.0210.42
#FFFFFF10.421.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004084
Deuteranopia (green-blind)
#023F7F
Tritanopia (blue-blind)
#424052
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4e2d81;
/* rgb */ color: rgb(78, 45, 129);
/* oklch */ color: oklch(38.5% 0.135 297.8);
Tailwind
colors: {
  custom: {
    50: '#8468a6',
    500: '#4e2d81',
    950: '#000000',
  },
}
SCSS
$custom: #4e2d81;
$custom-light: #8468a6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2d81",
  "rgb": {
    "r": 78,
    "g": 45,
    "b": 129
  },
  "hsl": {
    "h": 263.571,
    "s": 48.276,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38517,
    "c": 0.13535,
    "h": 297.8
  },
  "luminance": 0.05081
}

Semantic roles & 50–950 ramp

primary
#4E2D81
secondary
#8EAE5C
accent
#D850A2
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4E2D81

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

Preview Lab → · Contrast checker → · Palette generator →

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