#4E2266#4E2266

#4E2266 is a dark, moderate violet. Relative luminance 0.037; OKLCH L 34.8% C 0.119 H 311.6°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#4E2266
RGBrgb(78, 34, 102)
HSLhsl(279, 50%, 27%)
HSVhsv(279, 67%, 40%)
CMYKcmyk(23.5%, 66.7%, 0%, 60%)
CIE-LABlab(22.73, 33.36, -31.61)
CIE-LCHlch(22.73, 45.95, 316.54°)
OKLaboklab(34.83% 0.079 -0.089)
OKLCHoklch(34.83% 0.119 311.6)
XYZxyz(6.1117, 3.7232, 12.9645)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2266 #3A6622
analogous
#2C2266 #4E2266 #66225C
triadic
#4E2266 #664E22 #22664E
tetradic
#4E2266 #662C22 #3A6622 #225C66
square
#4E2266 #662C22 #3A6622 #225C66
split-complementary
#4E2266 #5C6622 #22662C
monochromatic
#120817 #2B1338 #4E2266 #713194 #9442C0

Accessibility & contrast

On white

12.04
#4E2266 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#4E2266 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2266
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2266#FFFFFF#000000##FFFFFF
##4E22661.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#043468
Deuteranopia (green-blind)
#1C3764
Tritanopia (blue-blind)
#4B2F40
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4e2266;
/* rgb */ color: rgb(78, 34, 102);
/* oklch */ color: oklch(34.8% 0.119 311.6);
Tailwind
colors: {
  custom: {
    50: '#826092',
    500: '#4e2266',
    950: '#000000',
  },
}
SCSS
$custom: #4e2266;
$custom-light: #826092;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2266",
  "rgb": {
    "r": 78,
    "g": 34,
    "b": 102
  },
  "hsl": {
    "h": 278.824,
    "s": 50,
    "l": 26.667
  },
  "oklch": {
    "l": 0.34832,
    "c": 0.119,
    "h": 311.6
  },
  "luminance": 0.03723
}

Semantic roles & 50–950 ramp

primary
#4E2266
secondary
#669A4A
accent
#DA4E7F
background
#F8F5F9
surface
#EFEAF1
border
#CAC6CB
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #4E2266

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

Preview Lab → · Contrast checker → · Palette generator →

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