#4E1865#4E1865

#4E1865 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.5% C 0.132 H 313.7°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#4E1865
RGBrgb(78, 24, 101)
HSLhsl(282, 62%, 25%)
HSVhsv(282, 76%, 40%)
CMYKcmyk(22.8%, 76.2%, 0%, 60.4%)
CIE-LABlab(20.88, 38.09, -33.94)
CIE-LCHlch(20.88, 51.02, 318.30°)
OKLaboklab(33.48% 0.0915 -0.0958)
OKLCHoklch(33.48% 0.132 313.7)
XYZxyz(5.8171, 3.2127, 12.6231)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1865 #2F6518
analogous
#281865 #4E1865 #651856
triadic
#4E1865 #654E18 #18654E
tetradic
#4E1865 #652818 #2F6518 #185665
square
#4E1865 #652818 #2F6518 #185665
split-complementary
#4E1865 #566518 #186528
monochromatic
#130619 #280C34 #4E1865 #742496 #9A30C8

Accessibility & contrast

On white

12.78
#4E1865 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E1865
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1865#FFFFFF#000000##FFFFFF
##4E18651.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F67
Deuteranopia (green-blind)
#123363
Tritanopia (blue-blind)
#4C293D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4e1865;
/* rgb */ color: rgb(78, 24, 101);
/* oklch */ color: oklch(33.5% 0.132 313.7);
Tailwind
colors: {
  custom: {
    50: '#835b91',
    500: '#4e1865',
    950: '#000000',
  },
}
SCSS
$custom: #4e1865;
$custom-light: #835b91;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1865",
  "rgb": {
    "r": 78,
    "g": 24,
    "b": 101
  },
  "hsl": {
    "h": 282.078,
    "s": 61.6,
    "l": 24.51
  },
  "oklch": {
    "l": 0.33476,
    "c": 0.13242,
    "h": 313.7
  },
  "luminance": 0.03213
}

Semantic roles & 50–950 ramp

primary
#4E1865
secondary
#5A9B3E
accent
#E54373
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4E1865

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

Preview Lab → · Contrast checker → · Palette generator →

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