#4E2D7B#4E2D7B

#4E2D7B is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.1% C 0.128 H 299.8°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#4E2D7B
RGBrgb(78, 45, 123)
HSLhsl(265, 46%, 33%)
HSVhsv(265, 63%, 48%)
CMYKcmyk(36.6%, 63.4%, 0%, 51.8%)
CIE-LABlab(26.52, 32.63, -39.00)
CIE-LCHlch(26.52, 50.85, 309.92°)
OKLaboklab(38.06% 0.0635 -0.1107)
OKLCHoklch(38.06% 0.128 299.8)
XYZxyz(7.6546, 4.9265, 19.2827)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2D7B #5A7B2D
analogous
#2D337B #4E2D7B #752D7B
triadic
#4E2D7B #7B4E2D #2D7B4E
tetradic
#4E2D7B #7B2D33 #5A7B2D #2D7B75
square
#4E2D7B #7B2D33 #5A7B2D #2D7B75
split-complementary
#4E2D7B #7B752D #337B2D
monochromatic
#150C21 #321D4E #4E2D7B #6A3DA8 #895EC4

Accessibility & contrast

On white

10.58
#4E2D7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#4E2D7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2D7B
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2D7B#FFFFFF#000000##FFFFFF
##4E2D7B1.0010.581.9910.58
#FFFFFF10.581.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F7D
Deuteranopia (green-blind)
#113E79
Tritanopia (blue-blind)
#443E4F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4e2d7b;
/* rgb */ color: rgb(78, 45, 123);
/* oklch */ color: oklch(38.1% 0.128 299.8);
Tailwind
colors: {
  custom: {
    50: '#8368a2',
    500: '#4e2d7b',
    950: '#000000',
  },
}
SCSS
$custom: #4e2d7b;
$custom-light: #8368a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2d7b",
  "rgb": {
    "r": 78,
    "g": 45,
    "b": 123
  },
  "hsl": {
    "h": 265.385,
    "s": 46.429,
    "l": 32.941
  },
  "oklch": {
    "l": 0.38057,
    "c": 0.12763,
    "h": 299.8
  },
  "luminance": 0.04927
}

Semantic roles & 50–950 ramp

primary
#4E2D7B
secondary
#88AB59
accent
#D6529E
background
#F8F6FA
surface
#EFEBF3
border
#CAC6CD
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4E2D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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