#481878#481878

#481878 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.151 H 301.3°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#481878
RGBrgb(72, 24, 120)
HSLhsl(270, 67%, 28%)
HSVhsv(270, 80%, 47%)
CMYKcmyk(40%, 80%, 0%, 52.9%)
CIE-LABlab(21.53, 41.52, -45.22)
CIE-LCHlch(21.53, 61.39, 312.55°)
OKLaboklab(34.24% 0.0784 -0.1291)
OKLCHoklch(34.24% 0.151 301.3)
XYZxyz(6.3885, 3.3870, 18.0828)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#481878 #487818
analogous
#181878 #481878 #781878
triadic
#481878 #784818 #187848
tetradic
#481878 #781818 #487818 #187878
square
#481878 #781818 #487818 #187878
split-complementary
#481878 #787818 #187818
monochromatic
#0F051A #290E45 #481878 #6722AB #8534D6

Accessibility & contrast

On white

12.52
#481878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#481878 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #481878
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##481878#FFFFFF#000000##FFFFFF
##4818781.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337B
Deuteranopia (green-blind)
#003376
Tritanopia (blue-blind)
#3D3147
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #481878;
/* rgb */ color: rgb(72, 24, 120);
/* oklch */ color: oklch(34.2% 0.151 301.3);
Tailwind
colors: {
  custom: {
    50: '#805ba0',
    500: '#481878',
    950: '#000000',
  },
}
SCSS
$custom: #481878;
$custom-light: #805ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#481878",
  "rgb": {
    "r": 72,
    "g": 24,
    "b": 120
  },
  "hsl": {
    "h": 270,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.34237,
    "c": 0.1511,
    "h": 301.3
  },
  "luminance": 0.03387
}

Semantic roles & 50–950 ramp

primary
#481878
secondary
#76AD3F
accent
#EA3E94
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040F
muted
#7C797E

Preview Lab

Preview with #481878

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

Preview Lab → · Contrast checker → · Palette generator →

#481878 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva