#4D26A1#4D26A1

#4D26A1 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.2% C 0.183 H 290.1°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#4D26A1
RGBrgb(77, 38, 161)
HSLhsl(259, 62%, 39%)
HSVhsv(259, 76%, 63%)
CMYKcmyk(52.2%, 76.4%, 0%, 36.9%)
CIE-LABlab(28.21, 46.92, -59.78)
CIE-LCHlch(28.21, 75.99, 308.13°)
OKLaboklab(40.22% 0.0628 -0.1718)
OKLCHoklch(40.22% 0.183 290.1)
XYZxyz(10.1848, 5.5368, 34.2434)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D26A1 #7AA126
analogous
#263DA1 #4D26A1 #8B26A1
triadic
#4D26A1 #A14D26 #26A14D
tetradic
#4D26A1 #A1263D #7AA126 #26A18B
square
#4D26A1 #A1263D #7AA126 #26A18B
split-complementary
#4D26A1 #A18B26 #3DA126
monochromatic
#1E0F3E #351A6F #4D26A1 #6635CF #8B66DB

Accessibility & contrast

On white

9.96
#4D26A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#4D26A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D26A1
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D26A1#FFFFFF#000000##FFFFFF
##4D26A11.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d26a1;
/* rgb */ color: rgb(77, 38, 161);
/* oklch */ color: oklch(40.2% 0.183 290.1);
Tailwind
colors: {
  custom: {
    50: '#8865be',
    500: '#4d26a1',
    950: '#000000',
  },
}
SCSS
$custom: #4d26a1;
$custom-light: #8865be;
$custom-dark: #000000;
JSON
{
  "hex": "#4d26a1",
  "rgb": {
    "r": 77,
    "g": 38,
    "b": 161
  },
  "hsl": {
    "h": 259.024,
    "s": 61.809,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40221,
    "c": 0.18289,
    "h": 290.1
  },
  "luminance": 0.05537
}

Semantic roles & 50–950 ramp

primary
#4D26A1
secondary
#A3C162
accent
#E543B2
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4D26A1

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

Preview Lab → · Contrast checker → · Palette generator →

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