#4E2068#4E2068

#4E2068 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.7% C 0.124 H 310.9°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#4E2068
RGBrgb(78, 32, 104)
HSLhsl(278, 53%, 27%)
HSVhsv(278, 69%, 41%)
CMYKcmyk(25%, 69.2%, 0%, 59.2%)
CIE-LABlab(22.49, 34.91, -33.31)
CIE-LCHlch(22.49, 48.25, 316.34°)
OKLaboklab(34.7% 0.0815 -0.094)
OKLCHoklch(34.7% 0.124 310.9)
XYZxyz(6.1566, 3.6523, 13.4747)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2068 #3A6820
analogous
#2A2068 #4E2068 #68205E
triadic
#4E2068 #684E20 #20684E
tetradic
#4E2068 #682A20 #3A6820 #205E68
square
#4E2068 #682A20 #3A6820 #205E68
split-complementary
#4E2068 #5E6820 #20682A
monochromatic
#120717 #2B1239 #4E2068 #712E97 #943FC4

Accessibility & contrast

On white

12.14
#4E2068 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#4E2068 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2068
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2068#FFFFFF#000000##FFFFFF
##4E20681.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346A
Deuteranopia (green-blind)
#183766
Tritanopia (blue-blind)
#4B2F41
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4e2068;
/* rgb */ color: rgb(78, 32, 104);
/* oklch */ color: oklch(34.7% 0.124 310.9);
Tailwind
colors: {
  custom: {
    50: '#825f94',
    500: '#4e2068',
    950: '#000000',
  },
}
SCSS
$custom: #4e2068;
$custom-light: #825f94;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2068",
  "rgb": {
    "r": 78,
    "g": 32,
    "b": 104
  },
  "hsl": {
    "h": 278.333,
    "s": 52.941,
    "l": 26.667
  },
  "oklch": {
    "l": 0.34699,
    "c": 0.1244,
    "h": 310.9
  },
  "luminance": 0.03652
}

Semantic roles & 50–950 ramp

primary
#4E2068
secondary
#669C48
accent
#DC4B80
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #4E2068

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

Preview Lab → · Contrast checker → · Palette generator →

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