#4E2F79#4E2F79

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

Color values

HEX#4E2F79
RGBrgb(78, 47, 121)
HSLhsl(265, 44%, 33%)
HSVhsv(265, 61%, 47%)
CMYKcmyk(35.5%, 61.2%, 0%, 52.5%)
CIE-LABlab(26.83, 30.88, -37.24)
CIE-LCHlch(26.83, 48.38, 309.67°)
OKLaboklab(38.23% 0.0609 -0.1056)
OKLCHoklch(38.23% 0.122 300)
XYZxyz(7.6088, 5.0331, 18.6561)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2F79 #5A792F
analogous
#2F3579 #4E2F79 #732F79
triadic
#4E2F79 #794E2F #2F794E
tetradic
#4E2F79 #792F35 #5A792F #2F7973
square
#4E2F79 #792F35 #5A792F #2F7973
split-complementary
#4E2F79 #79732F #35792F
monochromatic
#150D21 #321E4D #4E2F79 #6A40A5 #8961C2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4E2F79#FFFFFF#000000##FFFFFF
##4E2F791.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)
#083F7B
Deuteranopia (green-blind)
#183F77
Tritanopia (blue-blind)
#453E4F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4e2f79;
/* rgb */ color: rgb(78, 47, 121);
/* oklch */ color: oklch(38.2% 0.122 300.0);
Tailwind
colors: {
  custom: {
    50: '#8369a0',
    500: '#4e2f79',
    950: '#000000',
  },
}
SCSS
$custom: #4e2f79;
$custom-light: #8369a0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2f79",
  "rgb": {
    "r": 78,
    "g": 47,
    "b": 121
  },
  "hsl": {
    "h": 265.135,
    "s": 44.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.38234,
    "c": 0.12188,
    "h": 300
  },
  "luminance": 0.05033
}

Semantic roles & 50–950 ramp

primary
#4E2F79
secondary
#88A85B
accent
#D4549E
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060F
muted
#7C7A7E

Preview Lab

Preview with #4E2F79

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

Preview Lab → · Contrast checker → · Palette generator →

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