#4E26A6#4E26A6

#4E26A6 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.8% C 0.189 H 289.5°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#4E26A6
RGBrgb(78, 38, 166)
HSLhsl(259, 63%, 40%)
HSVhsv(259, 77%, 65%)
CMYKcmyk(53%, 77.1%, 0%, 34.9%)
CIE-LABlab(28.80, 48.46, -61.85)
CIE-LCHlch(28.80, 78.57, 308.08°)
OKLaboklab(40.8% 0.0629 -0.1778)
OKLCHoklch(40.8% 0.189 289.5)
XYZxyz(10.7159, 5.7586, 36.6159)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E26A6 #7EA626
analogous
#263EA6 #4E26A6 #8E26A6
triadic
#4E26A6 #A64E26 #26A64E
tetradic
#4E26A6 #A6263E #7EA626 #26A68E
square
#4E26A6 #A6263E #7EA626 #26A68E
split-complementary
#4E26A6 #A68E26 #3EA626
monochromatic
#1F0F42 #371B74 #4E26A6 #6838D1 #8E6ADD

Accessibility & contrast

On white

9.76
#4E26A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#4E26A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E26A6
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E26A6#FFFFFF#000000##FFFFFF
##4E26A61.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AA
Deuteranopia (green-blind)
#0041A4
Tritanopia (blue-blind)
#2D4A65
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4e26a6;
/* rgb */ color: rgb(78, 38, 166);
/* oklch */ color: oklch(40.8% 0.189 289.5);
Tailwind
colors: {
  custom: {
    50: '#8965c2',
    500: '#4e26a6',
    950: '#000000',
  },
}
SCSS
$custom: #4e26a6;
$custom-light: #8965c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e26a6",
  "rgb": {
    "r": 78,
    "g": 38,
    "b": 166
  },
  "hsl": {
    "h": 258.75,
    "s": 62.745,
    "l": 40
  },
  "oklch": {
    "l": 0.40799,
    "c": 0.1886,
    "h": 289.5
  },
  "luminance": 0.05759
}

Semantic roles & 50–950 ramp

primary
#4E26A6
secondary
#A6C365
accent
#E642B3
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #4E26A6

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

Preview Lab → · Contrast checker → · Palette generator →

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