#4E26A7#4E26A7

#4E26A7 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.9% C 0.190 H 289.3°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#4E26A7
RGBrgb(78, 38, 167)
HSLhsl(259, 63%, 40%)
HSVhsv(259, 77%, 65%)
CMYKcmyk(53.3%, 77.2%, 0%, 34.5%)
CIE-LABlab(28.89, 48.74, -62.29)
CIE-LCHlch(28.89, 79.10, 308.04°)
OKLaboklab(40.89% 0.0626 -0.1791)
OKLCHoklch(40.89% 0.19 289.3)
XYZxyz(10.8080, 5.7954, 37.1009)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E26A7 #7FA726
analogous
#263EA7 #4E26A7 #8F26A7
triadic
#4E26A7 #A74E26 #26A74E
tetradic
#4E26A7 #A7263E #7FA726 #26A78F
square
#4E26A7 #A7263E #7FA726 #26A78F
split-complementary
#4E26A7 #A78F26 #3EA726
monochromatic
#1F0F43 #371B75 #4E26A7 #6838D2 #8E6ADD

Accessibility & contrast

On white

9.73
#4E26A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#4E26A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E26A7
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E26A7#FFFFFF#000000##FFFFFF
##4E26A71.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AB
Deuteranopia (green-blind)
#0041A5
Tritanopia (blue-blind)
#2C4A65
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4e26a7;
/* rgb */ color: rgb(78, 38, 167);
/* oklch */ color: oklch(40.9% 0.190 289.3);
Tailwind
colors: {
  custom: {
    50: '#8965c2',
    500: '#4e26a7',
    950: '#000000',
  },
}
SCSS
$custom: #4e26a7;
$custom-light: #8965c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e26a7",
  "rgb": {
    "r": 78,
    "g": 38,
    "b": 167
  },
  "hsl": {
    "h": 258.605,
    "s": 62.927,
    "l": 40.196
  },
  "oklch": {
    "l": 0.40894,
    "c": 0.18974,
    "h": 289.3
  },
  "luminance": 0.05796
}

Semantic roles & 50–950 ramp

primary
#4E26A7
secondary
#A6C365
accent
#E642B3
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4E26A7

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

Preview Lab → · Contrast checker → · Palette generator →

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