#4C17B4#4C17B4

#4C17B4 is a dark, highly saturated violet. Relative luminance 0.054; OKLCH L 40.6% C 0.216 H 287.2°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#4C17B4
RGBrgb(76, 23, 180)
HSLhsl(260, 77%, 40%)
HSVhsv(260, 87%, 71%)
CMYKcmyk(57.8%, 87.2%, 0%, 29.4%)
CIE-LABlab(27.96, 57.96, -71.63)
CIE-LCHlch(27.96, 92.14, 308.98°)
OKLaboklab(40.6% 0.0638 -0.2063)
OKLCHoklch(40.6% 0.216 287.2)
XYZxyz(11.5226, 5.4439, 43.6148)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C17B4 #7FB417
analogous
#1730B4 #4C17B4 #9B17B4
triadic
#4C17B4 #B44C17 #17B44C
tetradic
#4C17B4 #B41730 #7FB417 #17B49B
square
#4C17B4 #B41730 #7FB417 #17B49B
split-complementary
#4C17B4 #B49B17 #30B417
monochromatic
#1E0947 #35107E #4C17B4 #6525E3 #8C5BEA

Accessibility & contrast

On white

10.05
#4C17B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#4C17B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C17B4
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C17B4#FFFFFF#000000##FFFFFF
##4C17B41.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B8
Deuteranopia (green-blind)
#003EB1
Tritanopia (blue-blind)
#174B6A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4c17b4;
/* rgb */ color: rgb(76, 23, 180);
/* oklch */ color: oklch(40.6% 0.216 287.2);
Tailwind
colors: {
  custom: {
    50: '#8b5fcc',
    500: '#4c17b4',
    950: '#000000',
  },
}
SCSS
$custom: #4c17b4;
$custom-light: #8b5fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#4c17b4",
  "rgb": {
    "r": 76,
    "g": 23,
    "b": 180
  },
  "hsl": {
    "h": 260.255,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.40602,
    "c": 0.2159,
    "h": 287.2
  },
  "luminance": 0.05445
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4C17B4

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

Preview Lab → · Contrast checker → · Palette generator →

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