#4E248C#4E248C

#4E248C is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.2% C 0.161 H 296.3°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#4E248C
RGBrgb(78, 36, 140)
HSLhsl(264, 59%, 35%)
HSVhsv(264, 74%, 55%)
CMYKcmyk(44.3%, 74.3%, 0%, 45.1%)
CIE-LABlab(26.08, 42.25, -50.37)
CIE-LCHlch(26.08, 65.74, 309.99°)
OKLaboklab(38.16% 0.0713 -0.1441)
OKLCHoklch(38.16% 0.161 296.3)
XYZxyz(8.5051, 4.7747, 25.2794)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E248C #628C24
analogous
#242E8C #4E248C #82248C
triadic
#4E248C #8C4E24 #248C4E
tetradic
#4E248C #8C242E #628C24 #248C82
square
#4E248C #8C242E #628C24 #248C82
split-complementary
#4E248C #8C8224 #2E8C24
monochromatic
#180B2B #33175B #4E248C #6931BD #8957D4

Accessibility & contrast

On white

10.74
#4E248C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#4E248C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E248C
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E248C#FFFFFF#000000##FFFFFF
##4E248C1.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8F
Deuteranopia (green-blind)
#003C8A
Tritanopia (blue-blind)
#3D3F56
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4e248c;
/* rgb */ color: rgb(78, 36, 140);
/* oklch */ color: oklch(38.2% 0.161 296.3);
Tailwind
colors: {
  custom: {
    50: '#8663ae',
    500: '#4e248c',
    950: '#000000',
  },
}
SCSS
$custom: #4e248c;
$custom-light: #8663ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4e248c",
  "rgb": {
    "r": 78,
    "g": 36,
    "b": 140
  },
  "hsl": {
    "h": 264.231,
    "s": 59.091,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38164,
    "c": 0.1608,
    "h": 296.3
  },
  "luminance": 0.04775
}

Semantic roles & 50–950 ramp

primary
#4E248C
secondary
#90B854
accent
#E246A3
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #4E248C

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

Preview Lab → · Contrast checker → · Palette generator →

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