#4A26AB#4A26AB

#4A26AB is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.9% C 0.195 H 286.5°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#4A26AB
RGBrgb(74, 38, 171)
HSLhsl(256, 64%, 41%)
HSVhsv(256, 78%, 67%)
CMYKcmyk(56.7%, 77.8%, 0%, 32.9%)
CIE-LABlab(28.85, 49.33, -64.78)
CIE-LCHlch(28.85, 81.42, 307.29°)
OKLaboklab(40.89% 0.0554 -0.1865)
OKLCHoklch(40.89% 0.195 286.5)
XYZxyz(10.8656, 5.7817, 39.0636)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A26AB #87AB26
analogous
#2644AB #4A26AB #8C26AB
triadic
#4A26AB #AB4A26 #26AB4A
tetradic
#4A26AB #AB2644 #87AB26 #26AB8C
square
#4A26AB #AB2644 #87AB26 #26AB8C
split-complementary
#4A26AB #AB8C26 #44AB26
monochromatic
#1F1047 #341B79 #4A26AB #643BD3 #8C6DDF

Accessibility & contrast

On white

9.74
#4A26AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#4A26AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A26AB
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A26AB#FFFFFF#000000##FFFFFF
##4A26AB1.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AF
Deuteranopia (green-blind)
#0040A9
Tritanopia (blue-blind)
#1C4C68
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4a26ab;
/* rgb */ color: rgb(74, 38, 171);
/* oklch */ color: oklch(40.9% 0.195 286.5);
Tailwind
colors: {
  custom: {
    50: '#8865c5',
    500: '#4a26ab',
    950: '#000000',
  },
}
SCSS
$custom: #4a26ab;
$custom-light: #8865c5;
$custom-dark: #000000;
JSON
{
  "hex": "#4a26ab",
  "rgb": {
    "r": 74,
    "g": 38,
    "b": 171
  },
  "hsl": {
    "h": 256.241,
    "s": 63.636,
    "l": 40.98
  },
  "oklch": {
    "l": 0.40887,
    "c": 0.19454,
    "h": 286.5
  },
  "luminance": 0.05782
}

Semantic roles & 50–950 ramp

primary
#4A26AB
secondary
#ACC568
accent
#E741BA
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0613
muted
#7D7A82

Preview Lab

Preview with #4A26AB

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

Preview Lab → · Contrast checker → · Palette generator →

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