#4E2495#4E2495

#4E2495 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.0% C 0.171 H 293.8°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#4E2495
RGBrgb(78, 36, 149)
HSLhsl(262, 61%, 36%)
HSVhsv(262, 76%, 58%)
CMYKcmyk(47.7%, 75.8%, 0%, 41.6%)
CIE-LABlab(26.88, 44.71, -54.63)
CIE-LCHlch(26.88, 70.59, 309.30°)
OKLaboklab(38.97% 0.0692 -0.1566)
OKLCHoklch(38.97% 0.171 293.8)
XYZxyz(9.1961, 5.0511, 28.9184)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2495 #6B9524
analogous
#243395 #4E2495 #872495
triadic
#4E2495 #954E24 #24954E
tetradic
#4E2495 #952433 #6B9524 #249587
square
#4E2495 #952433 #6B9524 #249587
split-complementary
#4E2495 #958724 #339524
monochromatic
#1A0C32 #341864 #4E2495 #6830C6 #8A5CD8

Accessibility & contrast

On white

10.45
#4E2495 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#4E2495 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2495
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2495#FFFFFF#000000##FFFFFF
##4E24951.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004198
Deuteranopia (green-blind)
#003E93
Tritanopia (blue-blind)
#39425B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4e2495;
/* rgb */ color: rgb(78, 36, 149);
/* oklch */ color: oklch(39.0% 0.171 293.8);
Tailwind
colors: {
  custom: {
    50: '#8763b5',
    500: '#4e2495',
    950: '#000000',
  },
}
SCSS
$custom: #4e2495;
$custom-light: #8763b5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2495",
  "rgb": {
    "r": 78,
    "g": 36,
    "b": 149
  },
  "hsl": {
    "h": 262.301,
    "s": 61.081,
    "l": 36.275
  },
  "oklch": {
    "l": 0.38972,
    "c": 0.17121,
    "h": 293.8
  },
  "luminance": 0.05051
}

Semantic roles & 50–950 ramp

primary
#4E2495
secondary
#97BC59
accent
#E444A9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4E2495

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

Preview Lab → · Contrast checker → · Palette generator →

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