#4E1762#4E1762

#4E1762 is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.1% C 0.131 H 315.4°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#4E1762
RGBrgb(78, 23, 98)
HSLhsl(284, 62%, 24%)
HSVhsv(284, 77%, 38%)
CMYKcmyk(20.4%, 76.5%, 0%, 61.6%)
CIE-LABlab(20.50, 37.85, -32.58)
CIE-LCHlch(20.50, 49.94, 319.28°)
OKLaboklab(33.14% 0.093 -0.0918)
OKLCHoklch(33.14% 0.131 315.4)
XYZxyz(5.6525, 3.1145, 11.8563)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1762 #2B6217
analogous
#281762 #4E1762 #621750
triadic
#4E1762 #624E17 #17624E
tetradic
#4E1762 #622817 #2B6217 #175062
square
#4E1762 #622817 #2B6217 #175062
split-complementary
#4E1762 #506217 #176228
monochromatic
#140619 #270B30 #4E1762 #752394 #9D2EC5

Accessibility & contrast

On white

12.94
#4E1762 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#4E1762 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1762
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1762#FFFFFF#000000##FFFFFF
##4E17621.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E64
Deuteranopia (green-blind)
#153360
Tritanopia (blue-blind)
#4C273B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4e1762;
/* rgb */ color: rgb(78, 23, 98);
/* oklch */ color: oklch(33.1% 0.131 315.4);
Tailwind
colors: {
  custom: {
    50: '#835a8f',
    500: '#4e1762',
    950: '#000000',
  },
}
SCSS
$custom: #4e1762;
$custom-light: #835a8f;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1762",
  "rgb": {
    "r": 78,
    "g": 23,
    "b": 98
  },
  "hsl": {
    "h": 284,
    "s": 61.983,
    "l": 23.725
  },
  "oklch": {
    "l": 0.33135,
    "c": 0.13062,
    "h": 315.4
  },
  "luminance": 0.03114
}

Semantic roles & 50–950 ramp

primary
#4E1762
secondary
#55993C
accent
#E5436E
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4E1762

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

Preview Lab → · Contrast checker → · Palette generator →

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