#4815B4#4815B4

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

Color values

HEX#4815B4
RGBrgb(72, 21, 180)
HSLhsl(259, 79%, 39%)
HSVhsv(259, 88%, 71%)
CMYKcmyk(60%, 88.3%, 0%, 29.4%)
CIE-LABlab(27.32, 58.23, -72.71)
CIE-LCHlch(27.32, 93.15, 308.69°)
OKLaboklab(40.06% 0.0582 -0.2095)
OKLCHoklch(40.06% 0.217 285.5)
XYZxyz(11.1764, 5.2086, 43.5876)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4815B4 #81B415
analogous
#1532B4 #4815B4 #9715B4
triadic
#4815B4 #B44815 #15B448
tetradic
#4815B4 #B41532 #81B415 #15B497
square
#4815B4 #B41532 #81B415 #15B497
split-complementary
#4815B4 #B49715 #32B415
monochromatic
#1C0846 #320F7D #4815B4 #6021E5 #8758EC

Accessibility & contrast

On white

10.29
#4815B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#4815B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4815B4
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4815B4#FFFFFF#000000##FFFFFF
##4815B41.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4815b4;
/* rgb */ color: rgb(72, 21, 180);
/* oklch */ color: oklch(40.1% 0.217 285.5);
Tailwind
colors: {
  custom: {
    50: '#895ecc',
    500: '#4815b4',
    950: '#000000',
  },
}
SCSS
$custom: #4815b4;
$custom-light: #895ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#4815b4",
  "rgb": {
    "r": 72,
    "g": 21,
    "b": 180
  },
  "hsl": {
    "h": 259.245,
    "s": 79.104,
    "l": 39.412
  },
  "oklch": {
    "l": 0.40064,
    "c": 0.2174,
    "h": 285.5
  },
  "luminance": 0.05209
}

Semantic roles & 50–950 ramp

primary
#4815B4
secondary
#A8CF56
accent
#F632B7
background
#F9F5FC
surface
#F1EAF9
border
#CBC6D2
text
#0D0514
muted
#7E7982

Preview Lab

Preview with #4815B4

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

Preview Lab → · Contrast checker → · Palette generator →

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