#48147E#48147E

#48147E is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.162 H 299.6°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#48147E
RGBrgb(72, 20, 126)
HSLhsl(269, 73%, 29%)
HSVhsv(269, 84%, 49%)
CMYKcmyk(42.9%, 84.1%, 0%, 50.6%)
CIE-LABlab(21.52, 44.69, -49.06)
CIE-LCHlch(21.52, 66.36, 312.33°)
OKLaboklab(34.4% 0.0799 -0.1404)
OKLCHoklch(34.4% 0.162 299.6)
XYZxyz(6.6876, 3.3843, 20.0355)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#48147E #4A7E14
analogous
#14157E #48147E #7D147E
triadic
#48147E #7E4814 #147E48
tetradic
#48147E #7E1415 #4A7E14 #147E7D
square
#48147E #7E1415 #4A7E14 #147E7D
split-complementary
#48147E #7E7D14 #157E14
monochromatic
#0F041A #2A0C49 #48147E #661CB3 #852EDE

Accessibility & contrast

On white

12.52
#48147E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

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

Contrast matrix

fg \ bg##48147E#FFFFFF#000000##FFFFFF
##48147E1.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)
#003381
Deuteranopia (green-blind)
#00337C
Tritanopia (blue-blind)
#3B324A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #48147e;
/* rgb */ color: rgb(72, 20, 126);
/* oklch */ color: oklch(34.4% 0.162 299.6);
Tailwind
colors: {
  custom: {
    50: '#8159a4',
    500: '#48147e',
    950: '#000000',
  },
}
SCSS
$custom: #48147e;
$custom-light: #8159a4;
$custom-dark: #000000;
JSON
{
  "hex": "#48147e",
  "rgb": {
    "r": 72,
    "g": 20,
    "b": 126
  },
  "hsl": {
    "h": 269.434,
    "s": 72.603,
    "l": 28.627
  },
  "oklch": {
    "l": 0.34401,
    "c": 0.16153,
    "h": 299.6
  },
  "luminance": 0.03384
}

Semantic roles & 50–950 ramp

primary
#48147E
secondary
#78B33A
accent
#EF3896
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #48147E

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

Preview Lab → · Contrast checker → · Palette generator →

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