#4E2273#4E2273

#4E2273 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.8% C 0.134 H 305.5°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#4E2273
RGBrgb(78, 34, 115)
HSLhsl(273, 54%, 29%)
HSVhsv(273, 70%, 45%)
CMYKcmyk(32.2%, 70.4%, 0%, 54.9%)
CIE-LABlab(23.68, 36.63, -38.50)
CIE-LCHlch(23.68, 53.14, 313.57°)
OKLaboklab(35.81% 0.078 -0.1092)
OKLCHoklch(35.81% 0.134 305.5)
XYZxyz(6.8077, 4.0016, 16.6301)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2273 #477322
analogous
#262273 #4E2273 #732270
triadic
#4E2273 #734E22 #22734E
tetradic
#4E2273 #732622 #477322 #227073
square
#4E2273 #732622 #477322 #227073
split-complementary
#4E2273 #707322 #227326
monochromatic
#100718 #2E1444 #4E2273 #6E30A2 #8D47C9

Accessibility & contrast

On white

11.66
#4E2273 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#4E2273 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2273
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2273#FFFFFF#000000##FFFFFF
##4E22731.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003775
Deuteranopia (green-blind)
#093871
Tritanopia (blue-blind)
#473447
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4e2273;
/* rgb */ color: rgb(78, 34, 115);
/* oklch */ color: oklch(35.8% 0.134 305.5);
Tailwind
colors: {
  custom: {
    50: '#83619c',
    500: '#4e2273',
    950: '#000000',
  },
}
SCSS
$custom: #4e2273;
$custom-light: #83619c;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2273",
  "rgb": {
    "r": 78,
    "g": 34,
    "b": 115
  },
  "hsl": {
    "h": 272.593,
    "s": 54.362,
    "l": 29.216
  },
  "oklch": {
    "l": 0.35811,
    "c": 0.1342,
    "h": 305.5
  },
  "luminance": 0.04002
}

Semantic roles & 50–950 ramp

primary
#4E2273
secondary
#74A64B
accent
#DE4A8E
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4E2273

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

Preview Lab → · Contrast checker → · Palette generator →

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