#4E2062#4E2062

#4E2062 is a dark, moderate purple. Relative luminance 0.035; OKLCH L 34.3% C 0.118 H 314.1°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#4E2062
RGBrgb(78, 32, 98)
HSLhsl(282, 51%, 25%)
HSVhsv(282, 67%, 38%)
CMYKcmyk(20.4%, 67.3%, 0%, 61.6%)
CIE-LABlab(22.07, 33.46, -30.06)
CIE-LCHlch(22.07, 44.98, 318.07°)
OKLaboklab(34.26% 0.0818 -0.0844)
OKLCHoklch(34.26% 0.118 314.1)
XYZxyz(5.8626, 3.5347, 11.9264)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2062 #346220
analogous
#2D2062 #4E2062 #622055
triadic
#4E2062 #624E20 #20624E
tetradic
#4E2062 #622D20 #346220 #205562
square
#4E2062 #622D20 #346220 #205562
split-complementary
#4E2062 #556220 #20622D
monochromatic
#120817 #291134 #4E2062 #732F90 #973EBE

Accessibility & contrast

On white

12.30
#4E2062 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#4E2062 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2062
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2062#FFFFFF#000000##FFFFFF
##4E20621.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#063264
Deuteranopia (green-blind)
#1D3660
Tritanopia (blue-blind)
#4C2C3E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4e2062;
/* rgb */ color: rgb(78, 32, 98);
/* oklch */ color: oklch(34.3% 0.118 314.1);
Tailwind
colors: {
  custom: {
    50: '#825f8f',
    500: '#4e2062',
    950: '#000000',
  },
}
SCSS
$custom: #4e2062;
$custom-light: #825f8f;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2062",
  "rgb": {
    "r": 78,
    "g": 32,
    "b": 98
  },
  "hsl": {
    "h": 281.818,
    "s": 50.769,
    "l": 25.49
  },
  "oklch": {
    "l": 0.34263,
    "c": 0.11756,
    "h": 314.1
  },
  "luminance": 0.03535
}

Semantic roles & 50–950 ramp

primary
#4E2062
secondary
#5F9647
accent
#DA4E78
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B050C
muted
#7C797D

Preview Lab

Preview with #4E2062

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

Preview Lab → · Contrast checker → · Palette generator →

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