#4818B4#4818B4

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

Color values

HEX#4818B4
RGBrgb(72, 24, 180)
HSLhsl(258, 76%, 40%)
HSVhsv(258, 87%, 71%)
CMYKcmyk(60%, 86.7%, 0%, 29.4%)
CIE-LABlab(27.64, 57.27, -72.18)
CIE-LCHlch(27.64, 92.14, 308.43°)
OKLaboklab(40.28% 0.0569 -0.208)
OKLCHoklch(40.28% 0.216 285.3)
XYZxyz(11.2348, 5.3256, 43.6071)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4818B4 #84B418
analogous
#1836B4 #4818B4 #9618B4
triadic
#4818B4 #B44818 #18B448
tetradic
#4818B4 #B41836 #84B418 #18B496
square
#4818B4 #B41836 #84B418 #18B496
split-complementary
#4818B4 #B49618 #36B418
monochromatic
#1D0A48 #32117E #4818B4 #6127E2 #885DE9

Accessibility & contrast

On white

10.17
#4818B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#4818B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4818B4
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4818B4#FFFFFF#000000##FFFFFF
##4818B41.0010.172.0710.17
#FFFFFF10.171.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4818b4;
/* rgb */ color: rgb(72, 24, 180);
/* oklch */ color: oklch(40.3% 0.216 285.3);
Tailwind
colors: {
  custom: {
    50: '#895fcc',
    500: '#4818b4',
    950: '#000000',
  },
}
SCSS
$custom: #4818b4;
$custom-light: #895fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#4818b4",
  "rgb": {
    "r": 72,
    "g": 24,
    "b": 180
  },
  "hsl": {
    "h": 258.462,
    "s": 76.471,
    "l": 40
  },
  "oklch": {
    "l": 0.40282,
    "c": 0.21562,
    "h": 285.3
  },
  "luminance": 0.05326
}

Semantic roles & 50–950 ramp

primary
#4818B4
secondary
#AACD5B
accent
#F335B8
background
#F9F5FC
surface
#F1EAF9
border
#CBC6D2
text
#0D0514
muted
#7E7982

Preview Lab

Preview with #4818B4

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

Preview Lab → · Contrast checker → · Palette generator →

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