#4E26A3#4E26A3

#4E26A3 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.5% C 0.185 H 290.1°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#4E26A3
RGBrgb(78, 38, 163)
HSLhsl(259, 62%, 39%)
HSVhsv(259, 77%, 64%)
CMYKcmyk(52.1%, 76.7%, 0%, 36.1%)
CIE-LABlab(28.51, 47.63, -60.50)
CIE-LCHlch(28.51, 77.00, 308.21°)
OKLaboklab(40.51% 0.0637 -0.1738)
OKLCHoklch(40.51% 0.185 290.1)
XYZxyz(10.4440, 5.6498, 35.1835)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E26A3 #7BA326
analogous
#263DA3 #4E26A3 #8D26A3
triadic
#4E26A3 #A34E26 #26A34E
tetradic
#4E26A3 #A3263D #7BA326 #26A38D
square
#4E26A3 #A3263D #7BA326 #26A38D
split-complementary
#4E26A3 #A38D26 #3DA326
monochromatic
#1F0F40 #361A71 #4E26A3 #6736D0 #8D68DC

Accessibility & contrast

On white

9.86
#4E26A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#4E26A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E26A3
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E26A3#FFFFFF#000000##FFFFFF
##4E26A31.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A7
Deuteranopia (green-blind)
#0040A1
Tritanopia (blue-blind)
#2F4963
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4e26a3;
/* rgb */ color: rgb(78, 38, 163);
/* oklch */ color: oklch(40.5% 0.185 290.1);
Tailwind
colors: {
  custom: {
    50: '#8965bf',
    500: '#4e26a3',
    950: '#000000',
  },
}
SCSS
$custom: #4e26a3;
$custom-light: #8965bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4e26a3",
  "rgb": {
    "r": 78,
    "g": 38,
    "b": 163
  },
  "hsl": {
    "h": 259.2,
    "s": 62.189,
    "l": 39.412
  },
  "oklch": {
    "l": 0.40513,
    "c": 0.18517,
    "h": 290.1
  },
  "luminance": 0.0565
}

Semantic roles & 50–950 ramp

primary
#4E26A3
secondary
#A3C263
accent
#E543B1
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #4E26A3

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

Preview Lab → · Contrast checker → · Palette generator →

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