#48108D#48108D

#48108D is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.6% C 0.180 H 295.2°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#48108D
RGBrgb(72, 16, 141)
HSLhsl(267, 80%, 31%)
HSVhsv(267, 89%, 55%)
CMYKcmyk(48.9%, 88.7%, 0%, 44.7%)
CIE-LABlab(22.55, 49.84, -56.81)
CIE-LCHlch(22.55, 75.57, 311.26°)
OKLaboklab(35.56% 0.0767 -0.163)
OKLCHoklch(35.56% 0.18 295.2)
XYZxyz(7.6642, 3.6712, 25.4989)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#48108D #558D10
analogous
#10168D #48108D #86108D
triadic
#48108D #8D4810 #108D48
tetradic
#48108D #8D1016 #558D10 #108D86
square
#48108D #8D1016 #558D10 #108D86
split-complementary
#48108D #8D8610 #168D10
monochromatic
#10041F #2C0A56 #48108D #6416C4 #8230E7

Accessibility & contrast

On white

12.11
#48108D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#48108D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #48108D
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##48108D#FFFFFF#000000##FFFFFF
##48108D1.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003790
Deuteranopia (green-blind)
#00348B
Tritanopia (blue-blind)
#333852
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #48108d;
/* rgb */ color: rgb(72, 16, 141);
/* oklch */ color: oklch(35.6% 0.180 295.2);
Tailwind
colors: {
  custom: {
    50: '#8359af',
    500: '#48108d',
    950: '#000000',
  },
}
SCSS
$custom: #48108d;
$custom-light: #8359af;
$custom-dark: #000000;
JSON
{
  "hex": "#48108d",
  "rgb": {
    "r": 72,
    "g": 16,
    "b": 141
  },
  "hsl": {
    "h": 266.88,
    "s": 79.618,
    "l": 30.784
  },
  "oklch": {
    "l": 0.35564,
    "c": 0.18018,
    "h": 295.2
  },
  "luminance": 0.03671
}

Semantic roles & 50–950 ramp

primary
#48108D
secondary
#84C237
accent
#F6329E
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #48108D

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

Preview Lab → · Contrast checker → · Palette generator →

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