#4D26A7#4D26A7

#4D26A7 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.8% C 0.190 H 288.8°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#4D26A7
RGBrgb(77, 38, 167)
HSLhsl(258, 63%, 40%)
HSVhsv(258, 77%, 65%)
CMYKcmyk(53.9%, 77.2%, 0%, 34.5%)
CIE-LABlab(28.78, 48.60, -62.48)
CIE-LCHlch(28.78, 79.16, 307.88°)
OKLaboklab(40.79% 0.0611 -0.1797)
OKLCHoklch(40.79% 0.19 288.8)
XYZxyz(10.7267, 5.7535, 37.0971)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D26A7 #80A726
analogous
#263FA7 #4D26A7 #8E26A7
triadic
#4D26A7 #A74D26 #26A74D
tetradic
#4D26A7 #A7263F #80A726 #26A78E
square
#4D26A7 #A7263F #80A726 #26A78E
split-complementary
#4D26A7 #A78E26 #3FA726
monochromatic
#1F0F43 #361B75 #4D26A7 #6738D2 #8D6ADD

Accessibility & contrast

On white

9.76
#4D26A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#4D26A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D26A7
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D26A7#FFFFFF#000000##FFFFFF
##4D26A71.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AB
Deuteranopia (green-blind)
#0041A5
Tritanopia (blue-blind)
#294A65
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4d26a7;
/* rgb */ color: rgb(77, 38, 167);
/* oklch */ color: oklch(40.8% 0.190 288.8);
Tailwind
colors: {
  custom: {
    50: '#8965c2',
    500: '#4d26a7',
    950: '#000000',
  },
}
SCSS
$custom: #4d26a7;
$custom-light: #8965c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4d26a7",
  "rgb": {
    "r": 77,
    "g": 38,
    "b": 167
  },
  "hsl": {
    "h": 258.14,
    "s": 62.927,
    "l": 40.196
  },
  "oklch": {
    "l": 0.40793,
    "c": 0.18978,
    "h": 288.8
  },
  "luminance": 0.05754
}

Semantic roles & 50–950 ramp

primary
#4D26A7
secondary
#A7C365
accent
#E642B4
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0613
muted
#7D7A82

Preview Lab

Preview with #4D26A7

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

Preview Lab → · Contrast checker → · Palette generator →

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