#4D26C9#4D26C9

#4D26C9 is a dark, highly saturated violet. Relative luminance 0.072; OKLCH L 44.2% C 0.228 H 282.8°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#4D26C9
RGBrgb(77, 38, 201)
HSLhsl(254, 68%, 47%)
HSVhsv(254, 81%, 79%)
CMYKcmyk(61.7%, 81.1%, 0%, 21.2%)
CIE-LABlab(32.21, 58.07, -77.00)
CIE-LCHlch(32.21, 96.44, 307.02°)
OKLaboklab(44.2% 0.0506 -0.2221)
OKLCHoklch(44.2% 0.228 282.8)
XYZxyz(14.2930, 7.1800, 55.8797)
Luminance0.0718 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D26C9 #A2C926
analogous
#2650C9 #4D26C9 #9F26C9
triadic
#4D26C9 #C94D26 #26C94D
tetradic
#4D26C9 #C92650 #A2C926 #26C99F
square
#4D26C9 #C92650 #A2C926 #26C99F
split-complementary
#4D26C9 #C99F26 #50C926
monochromatic
#261362 #391C96 #4D26C9 #714FDE #9A82E7

Accessibility & contrast

On white

8.62
#4D26C9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#4D26C9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D26C9
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D26C9#FFFFFF#000000##FFFFFF
##4D26C91.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051CD
Deuteranopia (green-blind)
#0046C6
Tritanopia (blue-blind)
#005879
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4d26c9;
/* rgb */ color: rgb(77, 38, 201);
/* oklch */ color: oklch(44.2% 0.228 282.8);
Tailwind
colors: {
  custom: {
    50: '#8f67db',
    500: '#4d26c9',
    950: '#000000',
  },
}
SCSS
$custom: #4d26c9;
$custom-light: #8f67db;
$custom-dark: #000000;
JSON
{
  "hex": "#4d26c9",
  "rgb": {
    "r": 77,
    "g": 38,
    "b": 201
  },
  "hsl": {
    "h": 254.356,
    "s": 68.201,
    "l": 46.863
  },
  "oklch": {
    "l": 0.44202,
    "c": 0.22776,
    "h": 282.8
  },
  "luminance": 0.07181
}

Semantic roles & 50–950 ramp

primary
#4D26C9
secondary
#BCD07B
accent
#EB3DC1
background
#F9F6FD
surface
#F2EBFB
border
#CCC6D4
text
#0E0615
muted
#7E7A83

Preview Lab

Preview with #4D26C9

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

Preview Lab → · Contrast checker → · Palette generator →

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