#4D17B4#4D17B4

#4D17B4 is a dark, highly saturated violet. Relative luminance 0.055; OKLCH L 40.7% C 0.216 H 287.6°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#4D17B4
RGBrgb(77, 23, 180)
HSLhsl(261, 77%, 40%)
HSVhsv(261, 87%, 71%)
CMYKcmyk(57.2%, 87.2%, 0%, 29.4%)
CIE-LABlab(28.07, 58.06, -71.44)
CIE-LCHlch(28.07, 92.06, 309.10°)
OKLaboklab(40.7% 0.0654 -0.2057)
OKLCHoklch(40.7% 0.216 287.6)
XYZxyz(11.6027, 5.4852, 43.6185)
Luminance0.0549 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D17B4 #7EB417
analogous
#172FB4 #4D17B4 #9C17B4
triadic
#4D17B4 #B44D17 #17B44D
tetradic
#4D17B4 #B4172F #7EB417 #17B49C
square
#4D17B4 #B4172F #7EB417 #17B49C
split-complementary
#4D17B4 #B49C17 #2FB417
monochromatic
#1F0947 #36107E #4D17B4 #6625E3 #8C5BEA

Accessibility & contrast

On white

10.01
#4D17B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#4D17B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D17B4
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D17B4#FFFFFF#000000##FFFFFF
##4D17B41.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B8
Deuteranopia (green-blind)
#003EB1
Tritanopia (blue-blind)
#1B4B6A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4d17b4;
/* rgb */ color: rgb(77, 23, 180);
/* oklch */ color: oklch(40.7% 0.216 287.6);
Tailwind
colors: {
  custom: {
    50: '#8c5fcc',
    500: '#4d17b4',
    950: '#000000',
  },
}
SCSS
$custom: #4d17b4;
$custom-light: #8c5fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#4d17b4",
  "rgb": {
    "r": 77,
    "g": 23,
    "b": 180
  },
  "hsl": {
    "h": 260.637,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.40703,
    "c": 0.21584,
    "h": 287.6
  },
  "luminance": 0.05486
}

Semantic roles & 50–950 ramp

primary
#4D17B4
secondary
#A6CE59
accent
#F434B2
background
#F9F5FC
surface
#F2EAF9
border
#CCC6D2
text
#0D0514
muted
#7E7982

Preview Lab

Preview with #4D17B4

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

Preview Lab → · Contrast checker → · Palette generator →

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