#4D26B3#4D26B3

#4D26B3 is a dark, highly saturated violet. Relative luminance 0.062; OKLCH L 42.0% C 0.203 H 286.4°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#4D26B3
RGBrgb(77, 38, 179)
HSLhsl(257, 65%, 43%)
HSVhsv(257, 79%, 70%)
CMYKcmyk(57%, 78.8%, 0%, 29.8%)
CIE-LABlab(29.96, 51.96, -67.74)
CIE-LCHlch(29.96, 85.38, 307.49°)
OKLaboklab(41.97% 0.0575 -0.1951)
OKLCHoklch(41.97% 0.203 286.4)
XYZxyz(11.8879, 6.2180, 43.2129)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D26B3 #8CB326
analogous
#2645B3 #4D26B3 #9426B3
triadic
#4D26B3 #B34D26 #26B34D
tetradic
#4D26B3 #B32645 #8CB326 #26B394
square
#4D26B3 #B32645 #8CB326 #26B394
split-complementary
#4D26B3 #B39426 #45B326
monochromatic
#22114E #371B81 #4D26B3 #6940D6 #9172E1

Accessibility & contrast

On white

9.36
#4D26B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D26B3
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D26B3#FFFFFF#000000##FFFFFF
##4D26B31.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB7
Deuteranopia (green-blind)
#0042B0
Tritanopia (blue-blind)
#1B4F6C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4d26b3;
/* rgb */ color: rgb(77, 38, 179);
/* oklch */ color: oklch(42.0% 0.203 286.4);
Tailwind
colors: {
  custom: {
    50: '#8b66cb',
    500: '#4d26b3',
    950: '#000000',
  },
}
SCSS
$custom: #4d26b3;
$custom-light: #8b66cb;
$custom-dark: #000000;
JSON
{
  "hex": "#4d26b3",
  "rgb": {
    "r": 77,
    "g": 38,
    "b": 179
  },
  "hsl": {
    "h": 256.596,
    "s": 64.977,
    "l": 42.549
  },
  "oklch": {
    "l": 0.41966,
    "c": 0.20338,
    "h": 286.4
  },
  "luminance": 0.06219
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4D26B3

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

Preview Lab → · Contrast checker → · Palette generator →

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