#4E248A#4E248A

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

Color values

HEX#4E248A
RGBrgb(78, 36, 138)
HSLhsl(265, 59%, 34%)
HSVhsv(265, 74%, 54%)
CMYKcmyk(43.5%, 73.9%, 0%, 45.9%)
CIE-LABlab(25.91, 41.70, -49.40)
CIE-LCHlch(25.91, 64.65, 310.17°)
OKLaboklab(37.99% 0.0718 -0.1413)
OKLCHoklch(37.99% 0.158 296.9)
XYZxyz(8.3590, 4.7163, 24.5098)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E248A #608A24
analogous
#242D8A #4E248A #81248A
triadic
#4E248A #8A4E24 #248A4E
tetradic
#4E248A #8A242D #608A24 #248A81
square
#4E248A #8A242D #608A24 #248A81
split-complementary
#4E248A #8A8124 #2D8A24
monochromatic
#170B29 #331759 #4E248A #6931BB #8956D3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4E248A#FFFFFF#000000##FFFFFF
##4E248A1.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)
#003E8D
Deuteranopia (green-blind)
#003C88
Tritanopia (blue-blind)
#3E3E55
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4e248a;
/* rgb */ color: rgb(78, 36, 138);
/* oklch */ color: oklch(38.0% 0.158 296.9);
Tailwind
colors: {
  custom: {
    50: '#8563ad',
    500: '#4e248a',
    950: '#000000',
  },
}
SCSS
$custom: #4e248a;
$custom-light: #8563ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4e248a",
  "rgb": {
    "r": 78,
    "g": 36,
    "b": 138
  },
  "hsl": {
    "h": 264.706,
    "s": 58.621,
    "l": 34.118
  },
  "oklch": {
    "l": 0.37988,
    "c": 0.15847,
    "h": 296.9
  },
  "luminance": 0.04716
}

Semantic roles & 50–950 ramp

primary
#4E248A
secondary
#8EB753
accent
#E246A2
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #4E248A

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

Preview Lab → · Contrast checker → · Palette generator →

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