#4E2770#4E2770

#4E2770 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.3% C 0.123 H 305.7°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#4E2770
RGBrgb(78, 39, 112)
HSLhsl(272, 48%, 30%)
HSVhsv(272, 65%, 44%)
CMYKcmyk(30.4%, 65.2%, 0%, 56.1%)
CIE-LABlab(24.45, 33.12, -35.33)
CIE-LCHlch(24.45, 48.42, 313.16°)
OKLaboklab(36.3% 0.0719 -0.0999)
OKLCHoklch(36.3% 0.123 305.7)
XYZxyz(6.7914, 4.2406, 15.7868)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2770 #497027
analogous
#2A2770 #4E2770 #70276E
triadic
#4E2770 #704E27 #27704E
tetradic
#4E2770 #702A27 #497027 #276E70
square
#4E2770 #702A27 #497027 #276E70
split-complementary
#4E2770 #6E7027 #27702A
monochromatic
#100817 #2E1743 #4E2770 #6E379D #8D50C2

Accessibility & contrast

On white

11.36
#4E2770 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#4E2770 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2770
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2770#FFFFFF#000000##FFFFFF
##4E27701.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003972
Deuteranopia (green-blind)
#173A6E
Tritanopia (blue-blind)
#483647
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4e2770;
/* rgb */ color: rgb(78, 39, 112);
/* oklch */ color: oklch(36.3% 0.123 305.7);
Tailwind
colors: {
  custom: {
    50: '#826399',
    500: '#4e2770',
    950: '#000000',
  },
}
SCSS
$custom: #4e2770;
$custom-light: #826399;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2770",
  "rgb": {
    "r": 78,
    "g": 39,
    "b": 112
  },
  "hsl": {
    "h": 272.055,
    "s": 48.344,
    "l": 29.608
  },
  "oklch": {
    "l": 0.363,
    "c": 0.12309,
    "h": 305.7
  },
  "luminance": 0.04241
}

Semantic roles & 50–950 ramp

primary
#4E2770
secondary
#77A250
accent
#D8508F
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B050E
muted
#7C7A7E

Preview Lab

Preview with #4E2770

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

Preview Lab → · Contrast checker → · Palette generator →

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