#4D26A6#4D26A6

#4D26A6 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.7% C 0.189 H 289.0°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#4D26A6
RGBrgb(77, 38, 166)
HSLhsl(258, 63%, 40%)
HSVhsv(258, 77%, 65%)
CMYKcmyk(53.6%, 77.1%, 0%, 34.9%)
CIE-LABlab(28.69, 48.32, -62.03)
CIE-LCHlch(28.69, 78.63, 307.92°)
OKLaboklab(40.7% 0.0614 -0.1784)
OKLCHoklch(40.7% 0.189 289)
XYZxyz(10.6346, 5.7167, 36.6121)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D26A6 #7FA626
analogous
#263FA6 #4D26A6 #8D26A6
triadic
#4D26A6 #A64D26 #26A64D
tetradic
#4D26A6 #A6263F #7FA626 #26A68D
square
#4D26A6 #A6263F #7FA626 #26A68D
split-complementary
#4D26A6 #A68D26 #3FA626
monochromatic
#1F0F42 #361B74 #4D26A6 #6738D1 #8D6ADD

Accessibility & contrast

On white

9.80
#4D26A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#4D26A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D26A6
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D26A6#FFFFFF#000000##FFFFFF
##4D26A61.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AA
Deuteranopia (green-blind)
#0040A4
Tritanopia (blue-blind)
#2A4A65
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4d26a6;
/* rgb */ color: rgb(77, 38, 166);
/* oklch */ color: oklch(40.7% 0.189 289.0);
Tailwind
colors: {
  custom: {
    50: '#8965c2',
    500: '#4d26a6',
    950: '#000000',
  },
}
SCSS
$custom: #4d26a6;
$custom-light: #8965c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4d26a6",
  "rgb": {
    "r": 77,
    "g": 38,
    "b": 166
  },
  "hsl": {
    "h": 258.281,
    "s": 62.745,
    "l": 40
  },
  "oklch": {
    "l": 0.40697,
    "c": 0.18863,
    "h": 289
  },
  "luminance": 0.05717
}

Semantic roles & 50–950 ramp

primary
#4D26A6
secondary
#A6C365
accent
#E642B4
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #4D26A6

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

Preview Lab → · Contrast checker → · Palette generator →

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