#4E26A4#4E26A4

#4E26A4 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.6% C 0.186 H 289.9°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#4E26A4
RGBrgb(78, 38, 164)
HSLhsl(259, 62%, 40%)
HSVhsv(259, 77%, 64%)
CMYKcmyk(52.4%, 76.8%, 0%, 35.7%)
CIE-LABlab(28.61, 47.91, -60.95)
CIE-LCHlch(28.61, 77.52, 308.17°)
OKLaboklab(40.61% 0.0635 -0.1752)
OKLCHoklch(40.61% 0.186 289.9)
XYZxyz(10.5339, 5.6858, 35.6572)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E26A4 #7CA426
analogous
#263DA4 #4E26A4 #8D26A4
triadic
#4E26A4 #A44E26 #26A44E
tetradic
#4E26A4 #A4263D #7CA426 #26A48D
square
#4E26A4 #A4263D #7CA426 #26A48D
split-complementary
#4E26A4 #A48D26 #3DA426
monochromatic
#1F0F41 #361A72 #4E26A4 #6837D1 #8D68DC

Accessibility & contrast

On white

9.83
#4E26A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#4E26A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E26A4
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E26A4#FFFFFF#000000##FFFFFF
##4E26A41.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A8
Deuteranopia (green-blind)
#0040A2
Tritanopia (blue-blind)
#2E4964
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4e26a4;
/* rgb */ color: rgb(78, 38, 164);
/* oklch */ color: oklch(40.6% 0.186 289.9);
Tailwind
colors: {
  custom: {
    50: '#8965c0',
    500: '#4e26a4',
    950: '#000000',
  },
}
SCSS
$custom: #4e26a4;
$custom-light: #8965c0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e26a4",
  "rgb": {
    "r": 78,
    "g": 38,
    "b": 164
  },
  "hsl": {
    "h": 259.048,
    "s": 62.376,
    "l": 39.608
  },
  "oklch": {
    "l": 0.40608,
    "c": 0.18631,
    "h": 289.9
  },
  "luminance": 0.05686
}

Semantic roles & 50–950 ramp

primary
#4E26A4
secondary
#A4C264
accent
#E542B2
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #4E26A4

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

Preview Lab → · Contrast checker → · Palette generator →

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