#48147F#48147F

#48147F is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.5% C 0.163 H 299.3°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#48147F
RGBrgb(72, 20, 127)
HSLhsl(269, 73%, 29%)
HSVhsv(269, 84%, 50%)
CMYKcmyk(43.3%, 84.3%, 0%, 50.2%)
CIE-LABlab(21.62, 44.94, -49.54)
CIE-LCHlch(21.62, 66.89, 312.21°)
OKLaboklab(34.5% 0.0795 -0.1418)
OKLCHoklch(34.5% 0.163 299.3)
XYZxyz(6.7524, 3.4102, 20.3770)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#48147F #4B7F14
analogous
#14167F #48147F #7E147F
triadic
#48147F #7F4814 #147F48
tetradic
#48147F #7F1416 #4B7F14 #147F7E
square
#48147F #7F1416 #4B7F14 #147F7E
split-complementary
#48147F #7F7E14 #167F14
monochromatic
#0F041A #2A0C4A #48147F #661CB4 #842FDE

Accessibility & contrast

On white

12.49
#48147F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#48147F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #48147F
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##48147F#FFFFFF#000000##FFFFFF
##48147F1.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#00337D
Tritanopia (blue-blind)
#3A334B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #48147f;
/* rgb */ color: rgb(72, 20, 127);
/* oklch */ color: oklch(34.5% 0.163 299.3);
Tailwind
colors: {
  custom: {
    50: '#8159a5',
    500: '#48147f',
    950: '#000000',
  },
}
SCSS
$custom: #48147f;
$custom-light: #8159a5;
$custom-dark: #000000;
JSON
{
  "hex": "#48147f",
  "rgb": {
    "r": 72,
    "g": 20,
    "b": 127
  },
  "hsl": {
    "h": 269.159,
    "s": 72.789,
    "l": 28.824
  },
  "oklch": {
    "l": 0.34497,
    "c": 0.16258,
    "h": 299.3
  },
  "luminance": 0.0341
}

Semantic roles & 50–950 ramp

primary
#48147F
secondary
#79B43B
accent
#EF3896
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #48147F

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

Preview Lab → · Contrast checker → · Palette generator →

#48147F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva