#4E1962#4E1962

#4E1962 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.4% C 0.128 H 315.1°. Best body text is #FFFFFF at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#4E1962
RGBrgb(78, 25, 98)
HSLhsl(284, 59%, 24%)
HSVhsv(284, 74%, 38%)
CMYKcmyk(20.4%, 74.5%, 0%, 61.6%)
CIE-LABlab(20.82, 36.95, -32.07)
CIE-LCHlch(20.82, 48.92, 319.05°)
OKLaboklab(33.36% 0.0907 -0.0903)
OKLCHoklch(33.36% 0.128 315.1)
XYZxyz(5.6938, 3.1970, 11.8701)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1962 #2D6219
analogous
#2A1962 #4E1962 #621952
triadic
#4E1962 #624E19 #19624E
tetradic
#4E1962 #622A19 #2D6219 #195262
square
#4E1962 #622A19 #2D6219 #195262
split-complementary
#4E1962 #526219 #19622A
monochromatic
#130618 #270D31 #4E1962 #752593 #9C32C4

Accessibility & contrast

On white

12.81
#4E1962 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#4E1962 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1962
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1962#FFFFFF#000000##FFFFFF
##4E19621.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F64
Deuteranopia (green-blind)
#173360
Tritanopia (blue-blind)
#4C283B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4e1962;
/* rgb */ color: rgb(78, 25, 98);
/* oklch */ color: oklch(33.4% 0.128 315.1);
Tailwind
colors: {
  custom: {
    50: '#825b8f',
    500: '#4e1962',
    950: '#000000',
  },
}
SCSS
$custom: #4e1962;
$custom-light: #825b8f;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1962",
  "rgb": {
    "r": 78,
    "g": 25,
    "b": 98
  },
  "hsl": {
    "h": 283.562,
    "s": 59.35,
    "l": 24.118
  },
  "oklch": {
    "l": 0.33363,
    "c": 0.12794,
    "h": 315.1
  },
  "luminance": 0.03197
}

Semantic roles & 50–950 ramp

primary
#4E1962
secondary
#57983F
accent
#E34570
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4E1962

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

Preview Lab → · Contrast checker → · Palette generator →

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