#4E2297#4E2297

#4E2297 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.9% C 0.176 H 293.6°. Best body text is #FFFFFF at 10.50:1 contrast (WCAG AA passes).

Color values

HEX#4E2297
RGBrgb(78, 34, 151)
HSLhsl(263, 63%, 36%)
HSVhsv(263, 77%, 59%)
CMYKcmyk(48.3%, 77.5%, 0%, 40.8%)
CIE-LABlab(26.73, 46.21, -56.10)
CIE-LCHlch(26.73, 72.69, 309.48°)
OKLaboklab(38.92% 0.0704 -0.1609)
OKLCHoklch(38.92% 0.176 293.6)
XYZxyz(9.2983, 4.9978, 29.7469)
Luminance0.0500 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2297 #6B9722
analogous
#223197 #4E2297 #892297
triadic
#4E2297 #974E22 #22974E
tetradic
#4E2297 #972231 #6B9722 #229789
square
#4E2297 #972231 #6B9722 #229789
split-complementary
#4E2297 #978922 #319722
monochromatic
#1A0C33 #341765 #4E2297 #682DC9 #8A5ADA

Accessibility & contrast

On white

10.50
#4E2297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#4E2297 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2297
10.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2297#FFFFFF#000000##FFFFFF
##4E22971.0010.502.0010.50
#FFFFFF10.501.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409A
Deuteranopia (green-blind)
#003D95
Tritanopia (blue-blind)
#38425B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4e2297;
/* rgb */ color: rgb(78, 34, 151);
/* oklch */ color: oklch(38.9% 0.176 293.6);
Tailwind
colors: {
  custom: {
    50: '#8762b7',
    500: '#4e2297',
    950: '#000000',
  },
}
SCSS
$custom: #4e2297;
$custom-light: #8762b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2297",
  "rgb": {
    "r": 78,
    "g": 34,
    "b": 151
  },
  "hsl": {
    "h": 262.564,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.38922,
    "c": 0.17564,
    "h": 293.6
  },
  "luminance": 0.04998
}

Semantic roles & 50–950 ramp

primary
#4E2297
secondary
#97BE57
accent
#E642A8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4E2297

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

Preview Lab → · Contrast checker → · Palette generator →

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