#4E248B#4E248B

#4E248B is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.1% C 0.160 H 296.6°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#4E248B
RGBrgb(78, 36, 139)
HSLhsl(264, 59%, 34%)
HSVhsv(264, 74%, 55%)
CMYKcmyk(43.9%, 74.1%, 0%, 45.5%)
CIE-LABlab(26.00, 41.97, -49.88)
CIE-LCHlch(26.00, 65.19, 310.08°)
OKLaboklab(38.08% 0.0716 -0.1427)
OKLCHoklch(38.08% 0.16 296.6)
XYZxyz(8.4317, 4.7454, 24.8928)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E248B #618B24
analogous
#242E8B #4E248B #82248B
triadic
#4E248B #8B4E24 #248B4E
tetradic
#4E248B #8B242E #618B24 #248B82
square
#4E248B #8B242E #618B24 #248B82
split-complementary
#4E248B #8B8224 #2E8B24
monochromatic
#170B2A #33175A #4E248B #6931BC #8956D3

Accessibility & contrast

On white

10.77
#4E248B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#4E248B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E248B
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E248B#FFFFFF#000000##FFFFFF
##4E248B1.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8E
Deuteranopia (green-blind)
#003C89
Tritanopia (blue-blind)
#3E3E55
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4e248b;
/* rgb */ color: rgb(78, 36, 139);
/* oklch */ color: oklch(38.1% 0.160 296.6);
Tailwind
colors: {
  custom: {
    50: '#8663ae',
    500: '#4e248b',
    950: '#000000',
  },
}
SCSS
$custom: #4e248b;
$custom-light: #8663ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4e248b",
  "rgb": {
    "r": 78,
    "g": 36,
    "b": 139
  },
  "hsl": {
    "h": 264.466,
    "s": 58.857,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38076,
    "c": 0.15964,
    "h": 296.6
  },
  "luminance": 0.04746
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E248B

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

Preview Lab → · Contrast checker → · Palette generator →

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