#4717B4#4717B4

#4717B4 is a dark, highly saturated violet. Relative luminance 0.052; OKLCH L 40.1% C 0.216 H 284.9°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#4717B4
RGBrgb(71, 23, 180)
HSLhsl(258, 77%, 40%)
HSVhsv(258, 87%, 71%)
CMYKcmyk(60.6%, 87.2%, 0%, 29.4%)
CIE-LABlab(27.43, 57.51, -72.54)
CIE-LCHlch(27.43, 92.57, 308.41°)
OKLaboklab(40.11% 0.0558 -0.209)
OKLCHoklch(40.11% 0.216 284.9)
XYZxyz(11.1406, 5.2470, 43.5969)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4717B4 #84B417
analogous
#1735B4 #4717B4 #9617B4
triadic
#4717B4 #B44717 #17B447
tetradic
#4717B4 #B41735 #84B417 #17B496
square
#4717B4 #B41735 #84B417 #17B496
split-complementary
#4717B4 #B49617 #35B417
monochromatic
#1C0947 #32107E #4717B4 #5F25E3 #875BEA

Accessibility & contrast

On white

10.25
#4717B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#4717B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4717B4
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4717B4#FFFFFF#000000##FFFFFF
##4717B41.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B8
Deuteranopia (green-blind)
#003CB1
Tritanopia (blue-blind)
#004B6A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4717b4;
/* rgb */ color: rgb(71, 23, 180);
/* oklch */ color: oklch(40.1% 0.216 284.9);
Tailwind
colors: {
  custom: {
    50: '#895fcc',
    500: '#4717b4',
    950: '#000000',
  },
}
SCSS
$custom: #4717b4;
$custom-light: #895fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#4717b4",
  "rgb": {
    "r": 71,
    "g": 23,
    "b": 180
  },
  "hsl": {
    "h": 258.344,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.40111,
    "c": 0.21634,
    "h": 284.9
  },
  "luminance": 0.05248
}

Semantic roles & 50–950 ramp

primary
#4717B4
secondary
#AACE59
accent
#F434B9
background
#F9F5FC
surface
#F1EAF9
border
#CBC6D2
text
#0D0514
muted
#7E7982

Preview Lab

Preview with #4717B4

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

Preview Lab → · Contrast checker → · Palette generator →

#4717B4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva