#4E2866#4E2866

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

Color values

HEX#4E2866
RGBrgb(78, 40, 102)
HSLhsl(277, 44%, 28%)
HSVhsv(277, 61%, 40%)
CMYKcmyk(23.5%, 60.8%, 0%, 60%)
CIE-LABlab(23.99, 29.97, -29.60)
CIE-LCHlch(23.99, 42.13, 315.35°)
OKLaboklab(35.74% 0.0706 -0.0832)
OKLCHoklch(35.74% 0.109 310.3)
XYZxyz(6.2985, 4.0967, 13.0267)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2866 #406628
analogous
#2F2866 #4E2866 #66285F
triadic
#4E2866 #664E28 #28664E
tetradic
#4E2866 #662F28 #406628 #285F66
square
#4E2866 #662F28 #406628 #285F66
split-complementary
#4E2866 #5F6628 #28662F
monochromatic
#110916 #2C173A #4E2866 #703992 #904FBA

Accessibility & contrast

On white

11.54
#4E2866 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2866
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2866#FFFFFF#000000##FFFFFF
##4E28661.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#133768
Deuteranopia (green-blind)
#223A64
Tritanopia (blue-blind)
#4B3343
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4e2866;
/* rgb */ color: rgb(78, 40, 102);
/* oklch */ color: oklch(35.7% 0.109 310.3);
Tailwind
colors: {
  custom: {
    50: '#826492',
    500: '#4e2866',
    950: '#000000',
  },
}
SCSS
$custom: #4e2866;
$custom-light: #826492;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2866",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 102
  },
  "hsl": {
    "h": 276.774,
    "s": 43.662,
    "l": 27.843
  },
  "oklch": {
    "l": 0.35745,
    "c": 0.10906,
    "h": 310.3
  },
  "luminance": 0.04097
}

Semantic roles & 50–950 ramp

primary
#4E2866
secondary
#6D9951
accent
#D35486
background
#F8F6F9
surface
#EFEBF1
border
#CAC6CB
text
#0B050D
muted
#7C7A7E

Preview Lab

Preview with #4E2866

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

Preview Lab → · Contrast checker → · Palette generator →

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