#4E26B4#4E26B4

#4E26B4 is a dark, highly saturated violet. Relative luminance 0.063; OKLCH L 42.2% C 0.204 H 286.7°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#4E26B4
RGBrgb(78, 38, 180)
HSLhsl(257, 65%, 43%)
HSVhsv(257, 79%, 71%)
CMYKcmyk(56.7%, 78.9%, 0%, 29.4%)
CIE-LABlab(30.16, 52.37, -68.00)
CIE-LCHlch(30.16, 85.83, 307.60°)
OKLaboklab(42.16% 0.0588 -0.1958)
OKLCHoklch(42.16% 0.204 286.7)
XYZxyz(12.0707, 6.3005, 43.7512)
Luminance0.0630 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E26B4 #8CB426
analogous
#2645B4 #4E26B4 #9526B4
triadic
#4E26B4 #B44E26 #26B44E
tetradic
#4E26B4 #B42645 #8CB426 #26B495
square
#4E26B4 #B42645 #8CB426 #26B495
split-complementary
#4E26B4 #B49526 #45B426
monochromatic
#22114F #381B81 #4E26B4 #6B40D7 #9273E1

Accessibility & contrast

On white

9.29
#4E26B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#4E26B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E26B4
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E26B4#FFFFFF#000000##FFFFFF
##4E26B41.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB8
Deuteranopia (green-blind)
#0043B1
Tritanopia (blue-blind)
#1D506D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4e26b4;
/* rgb */ color: rgb(78, 38, 180);
/* oklch */ color: oklch(42.2% 0.204 286.7);
Tailwind
colors: {
  custom: {
    50: '#8b66cc',
    500: '#4e26b4',
    950: '#000000',
  },
}
SCSS
$custom: #4e26b4;
$custom-light: #8b66cc;
$custom-dark: #000000;
JSON
{
  "hex": "#4e26b4",
  "rgb": {
    "r": 78,
    "g": 38,
    "b": 180
  },
  "hsl": {
    "h": 256.901,
    "s": 65.138,
    "l": 42.745
  },
  "oklch": {
    "l": 0.42161,
    "c": 0.20443,
    "h": 286.7
  },
  "luminance": 0.06301
}

Semantic roles & 50–950 ramp

primary
#4E26B4
secondary
#AFC96D
accent
#E840B9
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4E26B4

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

Preview Lab → · Contrast checker → · Palette generator →

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