#4E26A1#4E26A1

#4E26A1 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.3% C 0.183 H 290.6°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#4E26A1
RGBrgb(78, 38, 161)
HSLhsl(260, 62%, 39%)
HSVhsv(260, 76%, 63%)
CMYKcmyk(51.6%, 76.4%, 0%, 36.9%)
CIE-LABlab(28.32, 47.07, -59.59)
CIE-LCHlch(28.32, 75.94, 308.30°)
OKLaboklab(40.33% 0.0643 -0.1712)
OKLCHoklch(40.33% 0.183 290.6)
XYZxyz(10.2662, 5.5787, 34.2472)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E26A1 #79A126
analogous
#263CA1 #4E26A1 #8C26A1
triadic
#4E26A1 #A14E26 #26A14E
tetradic
#4E26A1 #A1263C #79A126 #26A18C
square
#4E26A1 #A1263C #79A126 #26A18C
split-complementary
#4E26A1 #A18C26 #3CA126
monochromatic
#1E0F3E #361A6F #4E26A1 #6735CF #8C66DB

Accessibility & contrast

On white

9.93
#4E26A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#4E26A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E26A1
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E26A1#FFFFFF#000000##FFFFFF
##4E26A11.009.932.129.93
#FFFFFF9.931.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A4
Deuteranopia (green-blind)
#00409F
Tritanopia (blue-blind)
#314862
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4e26a1;
/* rgb */ color: rgb(78, 38, 161);
/* oklch */ color: oklch(40.3% 0.183 290.6);
Tailwind
colors: {
  custom: {
    50: '#8865be',
    500: '#4e26a1',
    950: '#000000',
  },
}
SCSS
$custom: #4e26a1;
$custom-light: #8865be;
$custom-dark: #000000;
JSON
{
  "hex": "#4e26a1",
  "rgb": {
    "r": 78,
    "g": 38,
    "b": 161
  },
  "hsl": {
    "h": 259.512,
    "s": 61.809,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40325,
    "c": 0.18287,
    "h": 290.6
  },
  "luminance": 0.05579
}

Semantic roles & 50–950 ramp

primary
#4E26A1
secondary
#A2C162
accent
#E543B0
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4E26A1

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

Preview Lab → · Contrast checker → · Palette generator →

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