#4E2168#4E2168

#4E2168 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.8% C 0.123 H 310.8°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#4E2168
RGBrgb(78, 33, 104)
HSLhsl(278, 52%, 27%)
HSVhsv(278, 68%, 41%)
CMYKcmyk(25%, 68.3%, 0%, 59.2%)
CIE-LABlab(22.68, 34.38, -33.00)
CIE-LCHlch(22.68, 47.66, 316.18°)
OKLaboklab(34.84% 0.0802 -0.0931)
OKLCHoklch(34.84% 0.123 310.8)
XYZxyz(6.1840, 3.7070, 13.4838)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2168 #3B6821
analogous
#2B2168 #4E2168 #68215F
triadic
#4E2168 #684E21 #21684E
tetradic
#4E2168 #682B21 #3B6821 #215F68
square
#4E2168 #682B21 #3B6821 #215F68
split-complementary
#4E2168 #5F6821 #21682B
monochromatic
#110717 #2B123A #4E2168 #713096 #9341C3

Accessibility & contrast

On white

12.06
#4E2168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#4E2168 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2168
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2168#FFFFFF#000000##FFFFFF
##4E21681.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e2168;
/* rgb */ color: rgb(78, 33, 104);
/* oklch */ color: oklch(34.8% 0.123 310.8);
Tailwind
colors: {
  custom: {
    50: '#826094',
    500: '#4e2168',
    950: '#000000',
  },
}
SCSS
$custom: #4e2168;
$custom-light: #826094;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2168",
  "rgb": {
    "r": 78,
    "g": 33,
    "b": 104
  },
  "hsl": {
    "h": 278.028,
    "s": 51.825,
    "l": 26.863
  },
  "oklch": {
    "l": 0.34836,
    "c": 0.12288,
    "h": 310.8
  },
  "luminance": 0.03707
}

Semantic roles & 50–950 ramp

primary
#4E2168
secondary
#679C49
accent
#DB4D81
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #4E2168

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

Preview Lab → · Contrast checker → · Palette generator →

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