#4D26B2#4D26B2

#4D26B2 is a dark, highly saturated violet. Relative luminance 0.062; OKLCH L 41.9% C 0.202 H 286.6°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#4D26B2
RGBrgb(77, 38, 178)
HSLhsl(257, 65%, 42%)
HSVhsv(257, 79%, 70%)
CMYKcmyk(56.7%, 78.7%, 0%, 30.2%)
CIE-LABlab(29.86, 51.68, -67.31)
CIE-LCHlch(29.86, 84.86, 307.52°)
OKLaboklab(41.87% 0.0579 -0.1938)
OKLCHoklch(41.87% 0.202 286.6)
XYZxyz(11.7872, 6.1777, 42.6822)
Luminance0.0618 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D26B2 #8BB226
analogous
#2645B2 #4D26B2 #9326B2
triadic
#4D26B2 #B24D26 #26B24D
tetradic
#4D26B2 #B22645 #8BB226 #26B293
square
#4D26B2 #B22645 #8BB226 #26B293
split-complementary
#4D26B2 #B29326 #45B226
monochromatic
#21104D #371B80 #4D26B2 #693FD6 #9172E1

Accessibility & contrast

On white

9.39
#4D26B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#4D26B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D26B2
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D26B2#FFFFFF#000000##FFFFFF
##4D26B21.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB6
Deuteranopia (green-blind)
#0042AF
Tritanopia (blue-blind)
#1D4F6C
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4d26b2;
/* rgb */ color: rgb(77, 38, 178);
/* oklch */ color: oklch(41.9% 0.202 286.6);
Tailwind
colors: {
  custom: {
    50: '#8b66ca',
    500: '#4d26b2',
    950: '#000000',
  },
}
SCSS
$custom: #4d26b2;
$custom-light: #8b66ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4d26b2",
  "rgb": {
    "r": 77,
    "g": 38,
    "b": 178
  },
  "hsl": {
    "h": 256.714,
    "s": 64.815,
    "l": 42.353
  },
  "oklch": {
    "l": 0.41867,
    "c": 0.20226,
    "h": 286.6
  },
  "luminance": 0.06178
}

Semantic roles & 50–950 ramp

primary
#4D26B2
secondary
#AEC86C
accent
#E840B9
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4D26B2

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

Preview Lab → · Contrast checker → · Palette generator →

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