#4E2783#4E2783

#4E2783 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.8% C 0.146 H 298.5°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#4E2783
RGBrgb(78, 39, 131)
HSLhsl(265, 54%, 33%)
HSVhsv(265, 70%, 51%)
CMYKcmyk(40.5%, 70.2%, 0%, 48.6%)
CIE-LABlab(25.89, 38.23, -45.06)
CIE-LCHlch(25.89, 59.09, 310.31°)
OKLaboklab(37.79% 0.0699 -0.1285)
OKLCHoklch(37.79% 0.146 298.5)
XYZxyz(7.9631, 4.7093, 21.9578)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2783 #5C8327
analogous
#272E83 #4E2783 #7C2783
triadic
#4E2783 #834E27 #27834E
tetradic
#4E2783 #83272E #5C8327 #27837C
square
#4E2783 #83272E #5C8327 #27837C
split-complementary
#4E2783 #837C27 #2E8327
monochromatic
#160B25 #321954 #4E2783 #6A35B2 #8957CD

Accessibility & contrast

On white

10.81
#4E2783 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2783
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2783#FFFFFF#000000##FFFFFF
##4E27831.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D86
Deuteranopia (green-blind)
#003C81
Tritanopia (blue-blind)
#413D52
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4e2783;
/* rgb */ color: rgb(78, 39, 131);
/* oklch */ color: oklch(37.8% 0.146 298.5);
Tailwind
colors: {
  custom: {
    50: '#8464a8',
    500: '#4e2783',
    950: '#000000',
  },
}
SCSS
$custom: #4e2783;
$custom-light: #8464a8;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2783",
  "rgb": {
    "r": 78,
    "g": 39,
    "b": 131
  },
  "hsl": {
    "h": 265.435,
    "s": 54.118,
    "l": 33.333
  },
  "oklch": {
    "l": 0.37792,
    "c": 0.14632,
    "h": 298.5
  },
  "luminance": 0.04709
}

Semantic roles & 50–950 ramp

primary
#4E2783
secondary
#8AB254
accent
#DD4A9F
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4E2783

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

Preview Lab → · Contrast checker → · Palette generator →

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