#4817B4#4817B4

#4817B4 is a dark, highly saturated violet. Relative luminance 0.053; OKLCH L 40.2% C 0.216 H 285.4°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#4817B4
RGBrgb(72, 23, 180)
HSLhsl(259, 77%, 40%)
HSVhsv(259, 87%, 71%)
CMYKcmyk(60%, 87.2%, 0%, 29.4%)
CIE-LABlab(27.53, 57.60, -72.36)
CIE-LCHlch(27.53, 92.48, 308.52°)
OKLaboklab(40.21% 0.0574 -0.2085)
OKLCHoklch(40.21% 0.216 285.4)
XYZxyz(11.2146, 5.2851, 43.6003)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4817B4 #83B417
analogous
#1735B4 #4817B4 #9717B4
triadic
#4817B4 #B44817 #17B448
tetradic
#4817B4 #B41735 #83B417 #17B497
square
#4817B4 #B41735 #83B417 #17B497
split-complementary
#4817B4 #B49717 #35B417
monochromatic
#1D0947 #32107E #4817B4 #6025E3 #885BEA

Accessibility & contrast

On white

10.21
#4817B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#4817B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4817B4
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4817B4#FFFFFF#000000##FFFFFF
##4817B41.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.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: #4817b4;
/* rgb */ color: rgb(72, 23, 180);
/* oklch */ color: oklch(40.2% 0.216 285.4);
Tailwind
colors: {
  custom: {
    50: '#895fcc',
    500: '#4817b4',
    950: '#000000',
  },
}
SCSS
$custom: #4817b4;
$custom-light: #895fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#4817b4",
  "rgb": {
    "r": 72,
    "g": 23,
    "b": 180
  },
  "hsl": {
    "h": 258.726,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.40207,
    "c": 0.21624,
    "h": 285.4
  },
  "luminance": 0.05286
}

Semantic roles & 50–950 ramp

primary
#4817B4
secondary
#A9CE59
accent
#F434B8
background
#F9F5FC
surface
#F1EAF9
border
#CBC6D2
text
#0D0514
muted
#7E7982

Preview Lab

Preview with #4817B4

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

Preview Lab → · Contrast checker → · Palette generator →

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