#4D26A2#4D26A2

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

Color values

HEX#4D26A2
RGBrgb(77, 38, 162)
HSLhsl(259, 62%, 39%)
HSVhsv(259, 77%, 64%)
CMYKcmyk(52.5%, 76.5%, 0%, 36.5%)
CIE-LABlab(28.31, 47.20, -60.23)
CIE-LCHlch(28.31, 76.52, 308.08°)
OKLaboklab(40.32% 0.0625 -0.1731)
OKLCHoklch(40.32% 0.184 289.8)
XYZxyz(10.2734, 5.5722, 34.7096)
Luminance0.0557 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D26A2 #7BA226
analogous
#263DA2 #4D26A2 #8B26A2
triadic
#4D26A2 #A24D26 #26A24D
tetradic
#4D26A2 #A2263D #7BA226 #26A28B
square
#4D26A2 #A2263D #7BA226 #26A28B
split-complementary
#4D26A2 #A28B26 #3DA226
monochromatic
#1E0F3F #351A70 #4D26A2 #6635D0 #8C67DB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4D26A2#FFFFFF#000000##FFFFFF
##4D26A21.009.932.119.93
#FFFFFF9.931.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A6
Deuteranopia (green-blind)
#0040A0
Tritanopia (blue-blind)
#2E4863
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4d26a2;
/* rgb */ color: rgb(77, 38, 162);
/* oklch */ color: oklch(40.3% 0.184 289.8);
Tailwind
colors: {
  custom: {
    50: '#8865bf',
    500: '#4d26a2',
    950: '#000000',
  },
}
SCSS
$custom: #4d26a2;
$custom-light: #8865bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4d26a2",
  "rgb": {
    "r": 77,
    "g": 38,
    "b": 162
  },
  "hsl": {
    "h": 258.871,
    "s": 62,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40315,
    "c": 0.18404,
    "h": 289.8
  },
  "luminance": 0.05573
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4D26A2

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

Preview Lab → · Contrast checker → · Palette generator →

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