#4E2782#4E2782

#4E2782 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.7% C 0.145 H 298.9°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#4E2782
RGBrgb(78, 39, 130)
HSLhsl(266, 54%, 33%)
HSVhsv(266, 70%, 51%)
CMYKcmyk(40%, 70%, 0%, 49%)
CIE-LABlab(25.81, 37.95, -44.56)
CIE-LCHlch(25.81, 58.53, 310.42°)
OKLaboklab(37.71% 0.0701 -0.1271)
OKLCHoklch(37.71% 0.145 298.9)
XYZxyz(7.8957, 4.6823, 21.6026)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2782 #5B8227
analogous
#272E82 #4E2782 #7B2782
triadic
#4E2782 #824E27 #27824E
tetradic
#4E2782 #82272E #5B8227 #27827B
square
#4E2782 #82272E #5B8227 #27827B
split-complementary
#4E2782 #827B27 #2E8227
monochromatic
#160B24 #321953 #4E2782 #6A35B1 #8957CD

Accessibility & contrast

On white

10.84
#4E2782 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#4E2782 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2782
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2782#FFFFFF#000000##FFFFFF
##4E27821.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D85
Deuteranopia (green-blind)
#003C80
Tritanopia (blue-blind)
#423C51
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4e2782;
/* rgb */ color: rgb(78, 39, 130);
/* oklch */ color: oklch(37.7% 0.145 298.9);
Tailwind
colors: {
  custom: {
    50: '#8464a7',
    500: '#4e2782',
    950: '#000000',
  },
}
SCSS
$custom: #4e2782;
$custom-light: #8464a7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2782",
  "rgb": {
    "r": 78,
    "g": 39,
    "b": 130
  },
  "hsl": {
    "h": 265.714,
    "s": 53.846,
    "l": 33.137
  },
  "oklch": {
    "l": 0.37709,
    "c": 0.14511,
    "h": 298.9
  },
  "luminance": 0.04682
}

Semantic roles & 50–950 ramp

primary
#4E2782
secondary
#89B153
accent
#DD4B9E
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4E2782

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

Preview Lab → · Contrast checker → · Palette generator →

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