#4E2766#4E2766

#4E2766 is a dark, moderate violet. Relative luminance 0.040; OKLCH L 35.6% C 0.111 H 310.5°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#4E2766
RGBrgb(78, 39, 102)
HSLhsl(277, 45%, 28%)
HSVhsv(277, 62%, 40%)
CMYKcmyk(23.5%, 61.8%, 0%, 60%)
CIE-LABlab(23.77, 30.55, -29.95)
CIE-LCHlch(23.77, 42.78, 315.57°)
OKLaboklab(35.59% 0.072 -0.0842)
OKLCHoklch(35.59% 0.111 310.5)
XYZxyz(6.2652, 4.0302, 13.0157)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2766 #3F6627
analogous
#2E2766 #4E2766 #66275E
triadic
#4E2766 #664E27 #27664E
tetradic
#4E2766 #662E27 #3F6627 #275E66
square
#4E2766 #662E27 #3F6627 #275E66
split-complementary
#4E2766 #5E6627 #27662E
monochromatic
#110816 #2C163A #4E2766 #703892 #914DBB

Accessibility & contrast

On white

11.63
#4E2766 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#4E2766 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2766
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2766#FFFFFF#000000##FFFFFF
##4E27661.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#113768
Deuteranopia (green-blind)
#213964
Tritanopia (blue-blind)
#4B3342
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4e2766;
/* rgb */ color: rgb(78, 39, 102);
/* oklch */ color: oklch(35.6% 0.111 310.5);
Tailwind
colors: {
  custom: {
    50: '#826392',
    500: '#4e2766',
    950: '#000000',
  },
}
SCSS
$custom: #4e2766;
$custom-light: #826392;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2766",
  "rgb": {
    "r": 78,
    "g": 39,
    "b": 102
  },
  "hsl": {
    "h": 277.143,
    "s": 44.681,
    "l": 27.647
  },
  "oklch": {
    "l": 0.35586,
    "c": 0.11077,
    "h": 310.5
  },
  "luminance": 0.0403
}

Semantic roles & 50–950 ramp

primary
#4E2766
secondary
#6C9950
accent
#D45385
background
#F8F6F9
surface
#EFEBF1
border
#CAC6CB
text
#0B050D
muted
#7C7A7E

Preview Lab

Preview with #4E2766

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

Preview Lab → · Contrast checker → · Palette generator →

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