#4E2274#4E2274

#4E2274 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.9% C 0.135 H 305.1°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#4E2274
RGBrgb(78, 34, 116)
HSLhsl(272, 55%, 29%)
HSVhsv(272, 71%, 45%)
CMYKcmyk(32.8%, 70.7%, 0%, 54.5%)
CIE-LABlab(23.75, 36.88, -39.02)
CIE-LCHlch(23.75, 53.69, 313.39°)
OKLaboklab(35.89% 0.0778 -0.1107)
OKLCHoklch(35.89% 0.135 305.1)
XYZxyz(6.8656, 4.0248, 16.9348)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2274 #487422
analogous
#252274 #4E2274 #742271
triadic
#4E2274 #744E22 #22744E
tetradic
#4E2274 #742522 #487422 #227174
square
#4E2274 #742522 #487422 #227174
split-complementary
#4E2274 #717422 #227425
monochromatic
#100718 #2E1445 #4E2274 #6E30A3 #8D47C9

Accessibility & contrast

On white

11.63
#4E2274 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2274
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2274#FFFFFF#000000##FFFFFF
##4E22741.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003776
Deuteranopia (green-blind)
#063972
Tritanopia (blue-blind)
#473448
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4e2274;
/* rgb */ color: rgb(78, 34, 116);
/* oklch */ color: oklch(35.9% 0.135 305.1);
Tailwind
colors: {
  custom: {
    50: '#83619d',
    500: '#4e2274',
    950: '#000000',
  },
}
SCSS
$custom: #4e2274;
$custom-light: #83619d;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2274",
  "rgb": {
    "r": 78,
    "g": 34,
    "b": 116
  },
  "hsl": {
    "h": 272.195,
    "s": 54.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.3589,
    "c": 0.13536,
    "h": 305.1
  },
  "luminance": 0.04025
}

Semantic roles & 50–950 ramp

primary
#4E2274
secondary
#76A74B
accent
#DE4A8E
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4E2274

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

Preview Lab → · Contrast checker → · Palette generator →

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