#48147D#48147D

#48147D is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.160 H 300.0°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#48147D
RGBrgb(72, 20, 125)
HSLhsl(270, 72%, 28%)
HSVhsv(270, 84%, 49%)
CMYKcmyk(42.4%, 84%, 0%, 51%)
CIE-LABlab(21.43, 44.43, -48.58)
CIE-LCHlch(21.43, 65.84, 312.45°)
OKLaboklab(34.31% 0.0802 -0.139)
OKLCHoklch(34.31% 0.16 300)
XYZxyz(6.6234, 3.3586, 19.6974)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#48147D #497D14
analogous
#14157D #48147D #7C147D
triadic
#48147D #7D4814 #147D48
tetradic
#48147D #7D1415 #497D14 #147D7C
square
#48147D #7D1415 #497D14 #147D7C
split-complementary
#48147D #7D7C14 #157D14
monochromatic
#0F041A #2A0C48 #48147D #661CB2 #852EDE

Accessibility & contrast

On white

12.56
#48147D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#48147D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #48147D
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##48147D#FFFFFF#000000##FFFFFF
##48147D1.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#00337B
Tritanopia (blue-blind)
#3B3249
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #48147d;
/* rgb */ color: rgb(72, 20, 125);
/* oklch */ color: oklch(34.3% 0.160 300.0);
Tailwind
colors: {
  custom: {
    50: '#8159a4',
    500: '#48147d',
    950: '#000000',
  },
}
SCSS
$custom: #48147d;
$custom-light: #8159a4;
$custom-dark: #000000;
JSON
{
  "hex": "#48147d",
  "rgb": {
    "r": 72,
    "g": 20,
    "b": 125
  },
  "hsl": {
    "h": 269.714,
    "s": 72.414,
    "l": 28.431
  },
  "oklch": {
    "l": 0.34306,
    "c": 0.16048,
    "h": 300
  },
  "luminance": 0.03359
}

Semantic roles & 50–950 ramp

primary
#48147D
secondary
#77B23A
accent
#EF3995
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #48147D

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

Preview Lab → · Contrast checker → · Palette generator →

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