#4D26B1#4D26B1

#4D26B1 is a dark, highly saturated violet. Relative luminance 0.061; OKLCH L 41.8% C 0.201 H 286.8°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#4D26B1
RGBrgb(77, 38, 177)
HSLhsl(257, 65%, 42%)
HSVhsv(257, 79%, 69%)
CMYKcmyk(56.5%, 78.5%, 0%, 30.6%)
CIE-LABlab(29.76, 51.40, -66.88)
CIE-LCHlch(29.76, 84.35, 307.55°)
OKLaboklab(41.77% 0.0582 -0.1925)
OKLCHoklch(41.77% 0.201 286.8)
XYZxyz(11.6871, 6.1377, 42.1553)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D26B1 #8AB126
analogous
#2644B1 #4D26B1 #9326B1
triadic
#4D26B1 #B14D26 #26B14D
tetradic
#4D26B1 #B12644 #8AB126 #26B193
square
#4D26B1 #B12644 #8AB126 #26B193
split-complementary
#4D26B1 #B19326 #44B126
monochromatic
#21104C #371B7F #4D26B1 #693FD6 #9071E0

Accessibility & contrast

On white

9.43
#4D26B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#4D26B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D26B1
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D26B1#FFFFFF#000000##FFFFFF
##4D26B11.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B5
Deuteranopia (green-blind)
#0042AE
Tritanopia (blue-blind)
#1E4E6B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4d26b1;
/* rgb */ color: rgb(77, 38, 177);
/* oklch */ color: oklch(41.8% 0.201 286.8);
Tailwind
colors: {
  custom: {
    50: '#8a66ca',
    500: '#4d26b1',
    950: '#000000',
  },
}
SCSS
$custom: #4d26b1;
$custom-light: #8a66ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4d26b1",
  "rgb": {
    "r": 77,
    "g": 38,
    "b": 177
  },
  "hsl": {
    "h": 256.835,
    "s": 64.651,
    "l": 42.157
  },
  "oklch": {
    "l": 0.41768,
    "c": 0.20113,
    "h": 286.8
  },
  "luminance": 0.06138
}

Semantic roles & 50–950 ramp

primary
#4D26B1
secondary
#AEC76B
accent
#E840B9
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4D26B1

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

Preview Lab → · Contrast checker → · Palette generator →

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