#4C17A0#4C17A0

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

Color values

HEX#4C17A0
RGBrgb(76, 23, 160)
HSLhsl(263, 75%, 36%)
HSVhsv(263, 86%, 63%)
CMYKcmyk(52.5%, 85.6%, 0%, 37.3%)
CIE-LABlab(25.82, 52.82, -63.11)
CIE-LCHlch(25.82, 82.30, 309.93°)
OKLaboklab(38.51% 0.0718 -0.1814)
OKLCHoklch(38.51% 0.195 291.6)
XYZxyz(9.6302, 4.6870, 33.6481)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C17A0 #6BA017
analogous
#1726A0 #4C17A0 #9017A0
triadic
#4C17A0 #A04C17 #17A04C
tetradic
#4C17A0 #A01726 #6BA017 #17A090
square
#4C17A0 #A01726 #6BA017 #17A090
split-complementary
#4C17A0 #A09017 #26A017
monochromatic
#190835 #330F6A #4C17A0 #651FD6 #874CE5

Accessibility & contrast

On white

10.84
#4C17A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#4C17A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C17A0
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C17A0#FFFFFF#000000##FFFFFF
##4C17A01.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA4
Deuteranopia (green-blind)
#003A9E
Tritanopia (blue-blind)
#2E425E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4c17a0;
/* rgb */ color: rgb(76, 23, 160);
/* oklch */ color: oklch(38.5% 0.195 291.6);
Tailwind
colors: {
  custom: {
    50: '#885ebd',
    500: '#4c17a0',
    950: '#000000',
  },
}
SCSS
$custom: #4c17a0;
$custom-light: #885ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#4c17a0",
  "rgb": {
    "r": 76,
    "g": 23,
    "b": 160
  },
  "hsl": {
    "h": 263.212,
    "s": 74.863,
    "l": 35.882
  },
  "oklch": {
    "l": 0.38507,
    "c": 0.19508,
    "h": 291.6
  },
  "luminance": 0.04687
}

Semantic roles & 50–950 ramp

primary
#4C17A0
secondary
#97C74C
accent
#F136A9
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0D0512
muted
#7D7981

Preview Lab

Preview with #4C17A0

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

Preview Lab → · Contrast checker → · Palette generator →

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