#4E2865#4E2865

#4E2865 is a dark, moderate violet. Relative luminance 0.041; OKLCH L 35.7% C 0.108 H 310.8°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#4E2865
RGBrgb(78, 40, 101)
HSLhsl(277, 43%, 28%)
HSVhsv(277, 60%, 40%)
CMYKcmyk(22.8%, 60.4%, 0%, 60.4%)
CIE-LABlab(23.92, 29.72, -29.06)
CIE-LCHlch(23.92, 41.56, 315.65°)
OKLaboklab(35.68% 0.0705 -0.0816)
OKLCHoklch(35.68% 0.108 310.8)
XYZxyz(6.2492, 4.0770, 12.7671)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2865 #3F6528
analogous
#302865 #4E2865 #65285D
triadic
#4E2865 #654E28 #28654E
tetradic
#4E2865 #653028 #3F6528 #285D65
square
#4E2865 #653028 #3F6528 #285D65
split-complementary
#4E2865 #5D6528 #286530
monochromatic
#110916 #2C1739 #4E2865 #703991 #914EB9

Accessibility & contrast

On white

11.57
#4E2865 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4E2865 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2865
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2865#FFFFFF#000000##FFFFFF
##4E28651.0011.571.8211.57
#FFFFFF11.571.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153767
Deuteranopia (green-blind)
#233A63
Tritanopia (blue-blind)
#4B3342
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4e2865;
/* rgb */ color: rgb(78, 40, 101);
/* oklch */ color: oklch(35.7% 0.108 310.8);
Tailwind
colors: {
  custom: {
    50: '#826491',
    500: '#4e2865',
    950: '#000000',
  },
}
SCSS
$custom: #4e2865;
$custom-light: #826491;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2865",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 101
  },
  "hsl": {
    "h": 277.377,
    "s": 43.262,
    "l": 27.647
  },
  "oklch": {
    "l": 0.35677,
    "c": 0.10782,
    "h": 310.8
  },
  "luminance": 0.04077
}

Semantic roles & 50–950 ramp

primary
#4E2865
secondary
#6C9851
accent
#D35584
background
#F8F6F8
surface
#EFEBF0
border
#CAC6CB
text
#0B050D
muted
#7C7A7D

Preview Lab

Preview with #4E2865

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

Preview Lab → · Contrast checker → · Palette generator →

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