#4E248E#4E248E

#4E248E is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.3% C 0.163 H 295.8°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#4E248E
RGBrgb(78, 36, 142)
HSLhsl(264, 60%, 35%)
HSVhsv(264, 75%, 56%)
CMYKcmyk(45.1%, 74.6%, 0%, 44.3%)
CIE-LABlab(26.26, 42.79, -51.32)
CIE-LCHlch(26.26, 66.82, 309.82°)
OKLaboklab(38.34% 0.0709 -0.1469)
OKLCHoklch(38.34% 0.163 295.8)
XYZxyz(8.6539, 4.8342, 26.0631)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E248E #648E24
analogous
#242F8E #4E248E #83248E
triadic
#4E248E #8E4E24 #248E4E
tetradic
#4E248E #8E242F #648E24 #248E83
square
#4E248E #8E242F #648E24 #248E83
split-complementary
#4E248E #8E8324 #2F8E24
monochromatic
#180B2C #33185D #4E248E #6930BF #8958D5

Accessibility & contrast

On white

10.68
#4E248E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#4E248E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E248E
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E248E#FFFFFF#000000##FFFFFF
##4E248E1.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#003D8C
Tritanopia (blue-blind)
#3D3F57
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4e248e;
/* rgb */ color: rgb(78, 36, 142);
/* oklch */ color: oklch(38.3% 0.163 295.8);
Tailwind
colors: {
  custom: {
    50: '#8663b0',
    500: '#4e248e',
    950: '#000000',
  },
}
SCSS
$custom: #4e248e;
$custom-light: #8663b0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e248e",
  "rgb": {
    "r": 78,
    "g": 36,
    "b": 142
  },
  "hsl": {
    "h": 263.774,
    "s": 59.551,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38341,
    "c": 0.16312,
    "h": 295.8
  },
  "luminance": 0.04834
}

Semantic roles & 50–950 ramp

primary
#4E248E
secondary
#91B955
accent
#E345A4
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4E248E

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

Preview Lab → · Contrast checker → · Palette generator →

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