#4E2D7F#4E2D7F

#4E2D7F is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.4% C 0.133 H 298.4°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#4E2D7F
RGBrgb(78, 45, 127)
HSLhsl(264, 48%, 34%)
HSVhsv(264, 65%, 50%)
CMYKcmyk(38.6%, 64.6%, 0%, 50.2%)
CIE-LABlab(26.82, 33.75, -41.05)
CIE-LCHlch(26.82, 53.14, 309.42°)
OKLaboklab(38.36% 0.0633 -0.1167)
OKLCHoklch(38.36% 0.133 298.4)
XYZxyz(7.9101, 5.0287, 20.6284)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2D7F #5E7F2D
analogous
#2D357F #4E2D7F #772D7F
triadic
#4E2D7F #7F4E2D #2D7F4E
tetradic
#4E2D7F #7F2D35 #5E7F2D #2D7F77
square
#4E2D7F #7F2D35 #5E7F2D #2D7F77
split-complementary
#4E2D7F #7F772D #357F2D
monochromatic
#160D25 #321D52 #4E2D7F #6A3DAC #8960C7

Accessibility & contrast

On white

10.47
#4E2D7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#4E2D7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2D7F
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2D7F#FFFFFF#000000##FFFFFF
##4E2D7F1.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F82
Deuteranopia (green-blind)
#073F7D
Tritanopia (blue-blind)
#433F51
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4e2d7f;
/* rgb */ color: rgb(78, 45, 127);
/* oklch */ color: oklch(38.4% 0.133 298.4);
Tailwind
colors: {
  custom: {
    50: '#8368a5',
    500: '#4e2d7f',
    950: '#000000',
  },
}
SCSS
$custom: #4e2d7f;
$custom-light: #8368a5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2d7f",
  "rgb": {
    "r": 78,
    "g": 45,
    "b": 127
  },
  "hsl": {
    "h": 264.146,
    "s": 47.674,
    "l": 33.725
  },
  "oklch": {
    "l": 0.38362,
    "c": 0.13278,
    "h": 298.4
  },
  "luminance": 0.05029
}

Semantic roles & 50–950 ramp

primary
#4E2D7F
secondary
#8CAD5B
accent
#D751A1
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4E2D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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