#4D17A0#4D17A0

#4D17A0 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.6% C 0.195 H 292.1°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#4D17A0
RGBrgb(77, 23, 160)
HSLhsl(264, 75%, 36%)
HSVhsv(264, 86%, 63%)
CMYKcmyk(51.9%, 85.6%, 0%, 37.3%)
CIE-LABlab(25.95, 52.94, -62.90)
CIE-LCHlch(25.95, 82.21, 310.08°)
OKLaboklab(38.62% 0.0734 -0.1808)
OKLCHoklch(38.62% 0.195 292.1)
XYZxyz(9.7103, 4.7283, 33.6519)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D17A0 #6AA017
analogous
#1725A0 #4D17A0 #9117A0
triadic
#4D17A0 #A04D17 #17A04D
tetradic
#4D17A0 #A01725 #6AA017 #17A091
square
#4D17A0 #A01725 #6AA017 #17A091
split-complementary
#4D17A0 #A09117 #25A017
monochromatic
#190835 #330F6A #4D17A0 #671FD6 #884CE5

Accessibility & contrast

On white

10.79
#4D17A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#4D17A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D17A0
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D17A0#FFFFFF#000000##FFFFFF
##4D17A01.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA4
Deuteranopia (green-blind)
#003B9E
Tritanopia (blue-blind)
#30425E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4d17a0;
/* rgb */ color: rgb(77, 23, 160);
/* oklch */ color: oklch(38.6% 0.195 292.1);
Tailwind
colors: {
  custom: {
    50: '#895ebd',
    500: '#4d17a0',
    950: '#000000',
  },
}
SCSS
$custom: #4d17a0;
$custom-light: #895ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#4d17a0",
  "rgb": {
    "r": 77,
    "g": 23,
    "b": 160
  },
  "hsl": {
    "h": 263.65,
    "s": 74.863,
    "l": 35.882
  },
  "oklch": {
    "l": 0.38619,
    "c": 0.19509,
    "h": 292.1
  },
  "luminance": 0.04729
}

Semantic roles & 50–950 ramp

primary
#4D17A0
secondary
#96C74C
accent
#F136A8
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0D0512
muted
#7D7981

Preview Lab

Preview with #4D17A0

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

Preview Lab → · Contrast checker → · Palette generator →

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