#4E2B79#4E2B79

#4E2B79 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.6% C 0.128 H 301.1°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#4E2B79
RGBrgb(78, 43, 121)
HSLhsl(267, 48%, 32%)
HSVhsv(267, 64%, 47%)
CMYKcmyk(35.5%, 64.5%, 0%, 52.5%)
CIE-LABlab(25.95, 33.24, -38.66)
CIE-LCHlch(25.95, 50.99, 310.69°)
OKLaboklab(37.59% 0.0662 -0.1097)
OKLCHoklch(37.59% 0.128 301.1)
XYZxyz(7.4561, 4.7279, 18.6052)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2B79 #56792B
analogous
#2B2F79 #4E2B79 #752B79
triadic
#4E2B79 #794E2B #2B794E
tetradic
#4E2B79 #792B2F #56792B #2B7975
square
#4E2B79 #792B2F #56792B #2B7975
split-complementary
#4E2B79 #79752B #2F792B
monochromatic
#140B1F #311B4C #4E2B79 #6B3BA6 #8A5AC4

Accessibility & contrast

On white

10.79
#4E2B79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#4E2B79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2B79
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2B79#FFFFFF#000000##FFFFFF
##4E2B791.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7B
Deuteranopia (green-blind)
#103D77
Tritanopia (blue-blind)
#453C4D
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4e2b79;
/* rgb */ color: rgb(78, 43, 121);
/* oklch */ color: oklch(37.6% 0.128 301.1);
Tailwind
colors: {
  custom: {
    50: '#8366a0',
    500: '#4e2b79',
    950: '#000000',
  },
}
SCSS
$custom: #4e2b79;
$custom-light: #8366a0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2b79",
  "rgb": {
    "r": 78,
    "g": 43,
    "b": 121
  },
  "hsl": {
    "h": 266.923,
    "s": 47.561,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3759,
    "c": 0.12815,
    "h": 301.1
  },
  "luminance": 0.04728
}

Semantic roles & 50–950 ramp

primary
#4E2B79
secondary
#84AA56
accent
#D7519B
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060F
muted
#7C7A7E

Preview Lab

Preview with #4E2B79

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

Preview Lab → · Contrast checker → · Palette generator →

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