#4E0342#4E0342

#4E0342 is a dark, vivid purple. Relative luminance 0.021; OKLCH L 29.2% C 0.124 H 336.5°. Best body text is #FFFFFF at 14.83:1 contrast (WCAG AA passes).

Color values

HEX#4E0342
RGBrgb(78, 3, 66)
HSLhsl(310, 93%, 16%)
HSVhsv(310, 96%, 31%)
CMYKcmyk(0%, 96.2%, 15.4%, 69.4%)
CIE-LABlab(15.89, 38.70, -18.20)
CIE-LCHlch(15.89, 42.77, 334.82°)
OKLaboklab(29.17% 0.1141 -0.0497)
OKLCHoklch(29.17% 0.124 336.5)
XYZxyz(4.1579, 2.0786, 5.3354)
Luminance0.0208 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E0342 #034E0F
analogous
#34034E #4E0342 #4E031C
triadic
#4E0342 #424E03 #03424E
tetradic
#4E0342 #4E3403 #034E0F #031C4E
square
#4E0342 #4E3403 #034E0F #031C4E
split-complementary
#4E0342 #1C4E03 #034E34
monochromatic
#1D0119 #1D0119 #4E0342 #890574 #C408A6

Accessibility & contrast

On white

14.83
#4E0342 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#4E0342 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E0342
14.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E0342#FFFFFF#000000##FFFFFF
##4E03421.0014.831.4214.83
#FFFFFF14.831.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052144
Deuteranopia (green-blind)
#222B40
Tritanopia (blue-blind)
#530A24
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #4e0342;
/* rgb */ color: rgb(78, 3, 66);
/* oklch */ color: oklch(29.2% 0.124 336.5);
Tailwind
colors: {
  custom: {
    50: '#835176',
    500: '#4e0342',
    950: '#000000',
  },
}
SCSS
$custom: #4e0342;
$custom-light: #835176;
$custom-dark: #000000;
JSON
{
  "hex": "#4e0342",
  "rgb": {
    "r": 78,
    "g": 3,
    "b": 66
  },
  "hsl": {
    "h": 309.6,
    "s": 92.593,
    "l": 15.882
  },
  "oklch": {
    "l": 0.29166,
    "c": 0.12448,
    "h": 336.5
  },
  "luminance": 0.02078
}

Semantic roles & 50–950 ramp

primary
#4E0342
secondary
#1E8E30
accent
#FF4B29
background
#F8F4F7
surface
#EFE7ED
border
#CAC3C8
text
#0B0208
muted
#7C787B

Preview Lab

Preview with #4E0342

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

Preview Lab → · Contrast checker → · Palette generator →

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