#4E2170#4E2170

#4E2170 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.4% C 0.132 H 307.0°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#4E2170
RGBrgb(78, 33, 112)
HSLhsl(274, 54%, 28%)
HSVhsv(274, 71%, 44%)
CMYKcmyk(30.4%, 70.5%, 0%, 56.1%)
CIE-LABlab(23.26, 36.38, -37.24)
CIE-LCHlch(23.26, 52.06, 314.33°)
OKLaboklab(35.44% 0.0795 -0.1055)
OKLCHoklch(35.44% 0.132 307)
XYZxyz(6.6098, 3.8773, 15.7263)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2170 #437021
analogous
#262170 #4E2170 #70216A
triadic
#4E2170 #704E21 #21704E
tetradic
#4E2170 #702621 #437021 #216A70
square
#4E2170 #702621 #437021 #216A70
split-complementary
#4E2170 #6A7021 #217026
monochromatic
#100718 #2D1341 #4E2170 #6F2F9F #8F44C8

Accessibility & contrast

On white

11.83
#4E2170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#4E2170 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2170
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2170#FFFFFF#000000##FFFFFF
##4E21701.0011.831.7811.83
#FFFFFF11.831.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003672
Deuteranopia (green-blind)
#0D386E
Tritanopia (blue-blind)
#483245
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4e2170;
/* rgb */ color: rgb(78, 33, 112);
/* oklch */ color: oklch(35.4% 0.132 307.0);
Tailwind
colors: {
  custom: {
    50: '#83609a',
    500: '#4e2170',
    950: '#000000',
  },
}
SCSS
$custom: #4e2170;
$custom-light: #83609a;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2170",
  "rgb": {
    "r": 78,
    "g": 33,
    "b": 112
  },
  "hsl": {
    "h": 274.177,
    "s": 54.483,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35442,
    "c": 0.13213,
    "h": 307
  },
  "luminance": 0.03877
}

Semantic roles & 50–950 ramp

primary
#4E2170
secondary
#70A449
accent
#DE4A8A
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4E2170

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

Preview Lab → · Contrast checker → · Palette generator →

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