#4E2167#4E2167

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

Color values

HEX#4E2167
RGBrgb(78, 33, 103)
HSLhsl(279, 51%, 27%)
HSVhsv(279, 68%, 40%)
CMYKcmyk(24.3%, 68%, 0%, 59.6%)
CIE-LABlab(22.61, 34.14, -32.46)
CIE-LCHlch(22.61, 47.11, 316.44°)
OKLaboklab(34.76% 0.0803 -0.0915)
OKLCHoklch(34.76% 0.122 311.3)
XYZxyz(6.1335, 3.6868, 13.2179)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2167 #3A6721
analogous
#2B2167 #4E2167 #67215D
triadic
#4E2167 #674E21 #21674E
tetradic
#4E2167 #672B21 #3A6721 #215D67
square
#4E2167 #672B21 #3A6721 #215D67
split-complementary
#4E2167 #5D6721 #21672B
monochromatic
#120717 #2B1239 #4E2167 #713095 #9440C2

Accessibility & contrast

On white

12.09
#4E2167 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2167
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2167#FFFFFF#000000##FFFFFF
##4E21671.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003469
Deuteranopia (green-blind)
#1A3765
Tritanopia (blue-blind)
#4B2F41
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4e2167;
/* rgb */ color: rgb(78, 33, 103);
/* oklch */ color: oklch(34.8% 0.122 311.3);
Tailwind
colors: {
  custom: {
    50: '#826093',
    500: '#4e2167',
    950: '#000000',
  },
}
SCSS
$custom: #4e2167;
$custom-light: #826093;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2167",
  "rgb": {
    "r": 78,
    "g": 33,
    "b": 103
  },
  "hsl": {
    "h": 278.571,
    "s": 51.471,
    "l": 26.667
  },
  "oklch": {
    "l": 0.34763,
    "c": 0.12173,
    "h": 311.3
  },
  "luminance": 0.03687
}

Semantic roles & 50–950 ramp

primary
#4E2167
secondary
#669B49
accent
#DB4D80
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #4E2167

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

Preview Lab → · Contrast checker → · Palette generator →

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