#4D26B4#4D26B4

#4D26B4 is a dark, highly saturated violet. Relative luminance 0.063; OKLCH L 42.1% C 0.204 H 286.3°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#4D26B4
RGBrgb(77, 38, 180)
HSLhsl(256, 65%, 43%)
HSVhsv(256, 79%, 71%)
CMYKcmyk(57.2%, 78.9%, 0%, 29.4%)
CIE-LABlab(30.06, 52.24, -68.17)
CIE-LCHlch(30.06, 85.89, 307.46°)
OKLaboklab(42.07% 0.0572 -0.1963)
OKLCHoklch(42.07% 0.205 286.3)
XYZxyz(11.9894, 6.2586, 43.7474)
Luminance0.0626 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D26B4 #8DB426
analogous
#2646B4 #4D26B4 #9426B4
triadic
#4D26B4 #B44D26 #26B44D
tetradic
#4D26B4 #B42646 #8DB426 #26B494
square
#4D26B4 #B42646 #8DB426 #26B494
split-complementary
#4D26B4 #B49426 #46B426
monochromatic
#22114F #371B81 #4D26B4 #6A40D7 #9173E1

Accessibility & contrast

On white

9.33
#4D26B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#4D26B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D26B4
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D26B4#FFFFFF#000000##FFFFFF
##4D26B41.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB8
Deuteranopia (green-blind)
#0043B1
Tritanopia (blue-blind)
#1A506D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4d26b4;
/* rgb */ color: rgb(77, 38, 180);
/* oklch */ color: oklch(42.1% 0.204 286.3);
Tailwind
colors: {
  custom: {
    50: '#8b66cc',
    500: '#4d26b4',
    950: '#000000',
  },
}
SCSS
$custom: #4d26b4;
$custom-light: #8b66cc;
$custom-dark: #000000;
JSON
{
  "hex": "#4d26b4",
  "rgb": {
    "r": 77,
    "g": 38,
    "b": 180
  },
  "hsl": {
    "h": 256.479,
    "s": 65.138,
    "l": 42.745
  },
  "oklch": {
    "l": 0.42066,
    "c": 0.2045,
    "h": 286.3
  },
  "luminance": 0.06259
}

Semantic roles & 50–950 ramp

primary
#4D26B4
secondary
#AFC96D
accent
#E840BA
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4D26B4

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

Preview Lab → · Contrast checker → · Palette generator →

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