#4E2276#4E2276

#4E2276 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.0% C 0.138 H 304.3°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#4E2276
RGBrgb(78, 34, 118)
HSLhsl(271, 55%, 30%)
HSVhsv(271, 71%, 46%)
CMYKcmyk(33.9%, 71.2%, 0%, 53.7%)
CIE-LABlab(23.91, 37.40, -40.05)
CIE-LCHlch(23.91, 54.80, 313.04°)
OKLaboklab(36.05% 0.0776 -0.1138)
OKLCHoklch(36.05% 0.138 304.3)
XYZxyz(6.9832, 4.0718, 17.5541)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2276 #4A7622
analogous
#242276 #4E2276 #762274
triadic
#4E2276 #764E22 #22764E
tetradic
#4E2276 #762422 #4A7622 #227476
square
#4E2276 #762422 #4A7622 #227476
split-complementary
#4E2276 #747622 #227624
monochromatic
#100718 #2F1446 #4E2276 #6D30A6 #8C48CA

Accessibility & contrast

On white

11.57
#4E2276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#4E2276 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2276
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2276#FFFFFF#000000##FFFFFF
##4E22761.0011.571.8111.57
#FFFFFF11.571.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003879
Deuteranopia (green-blind)
#013974
Tritanopia (blue-blind)
#463549
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4e2276;
/* rgb */ color: rgb(78, 34, 118);
/* oklch */ color: oklch(36.0% 0.138 304.3);
Tailwind
colors: {
  custom: {
    50: '#83619e',
    500: '#4e2276',
    950: '#000000',
  },
}
SCSS
$custom: #4e2276;
$custom-light: #83619e;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2276",
  "rgb": {
    "r": 78,
    "g": 34,
    "b": 118
  },
  "hsl": {
    "h": 271.429,
    "s": 55.263,
    "l": 29.804
  },
  "oklch": {
    "l": 0.36049,
    "c": 0.1377,
    "h": 304.3
  },
  "luminance": 0.04072
}

Semantic roles & 50–950 ramp

primary
#4E2276
secondary
#78A94B
accent
#DF4990
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4E2276

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

Preview Lab → · Contrast checker → · Palette generator →

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