#4E0296#4E0296

#4E0296 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.5% C 0.197 H 296.7°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#4E0296
RGBrgb(78, 2, 150)
HSLhsl(271, 97%, 30%)
HSVhsv(271, 99%, 59%)
CMYKcmyk(48%, 98.7%, 0%, 41.2%)
CIE-LABlab(23.22, 56.00, -61.26)
CIE-LCHlch(23.22, 83.00, 312.43°)
OKLaboklab(36.48% 0.0885 -0.1757)
OKLCHoklch(36.48% 0.197 296.7)
XYZxyz(8.6671, 3.8649, 29.1376)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E0296 #4A9602
analogous
#040296 #4E0296 #960294
triadic
#4E0296 #964E02 #02964E
tetradic
#4E0296 #960402 #4A9602 #029496
square
#4E0296 #960402 #4A9602 #029496
split-complementary
#4E0296 #949602 #029604
monochromatic
#10001E #2F015A #4E0296 #6D03D2 #8C17FC

Accessibility & contrast

On white

11.84
#4E0296 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#4E0296 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E0296
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E0296#FFFFFF#000000##FFFFFF
##4E02961.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003899
Deuteranopia (green-blind)
#003594
Tritanopia (blue-blind)
#393856
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4e0296;
/* rgb */ color: rgb(78, 2, 150);
/* oklch */ color: oklch(36.5% 0.197 296.7);
Tailwind
colors: {
  custom: {
    50: '#8957b6',
    500: '#4e0296',
    950: '#000000',
  },
}
SCSS
$custom: #4e0296;
$custom-light: #8957b6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e0296",
  "rgb": {
    "r": 78,
    "g": 2,
    "b": 150
  },
  "hsl": {
    "h": 270.811,
    "s": 97.368,
    "l": 29.804
  },
  "oklch": {
    "l": 0.36482,
    "c": 0.19674,
    "h": 296.7
  },
  "luminance": 0.03865
}

Semantic roles & 50–950 ramp

primary
#4E0296
secondary
#78CD27
accent
#FF2991
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0D0411
muted
#7D7980

Preview Lab

Preview with #4E0296

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

Preview Lab → · Contrast checker → · Palette generator →

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