#48168D#48168D

#48168D is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.176 H 294.6°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#48168D
RGBrgb(72, 22, 141)
HSLhsl(265, 73%, 32%)
HSVhsv(265, 84%, 55%)
CMYKcmyk(48.9%, 84.4%, 0%, 44.7%)
CIE-LABlab(23.25, 47.77, -55.66)
CIE-LCHlch(23.25, 73.35, 310.64°)
OKLaboklab(36.04% 0.0731 -0.1597)
OKLCHoklch(36.04% 0.176 294.6)
XYZxyz(7.7658, 3.8744, 25.5328)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#48168D #5B8D16
analogous
#16208D #48168D #84168D
triadic
#48168D #8D4816 #168D48
tetradic
#48168D #8D1620 #5B8D16 #168D84
square
#48168D #8D1620 #5B8D16 #168D84
split-complementary
#48168D #8D8416 #208D16
monochromatic
#120523 #2D0E58 #48168D #631EC2 #823DE1

Accessibility & contrast

On white

11.83
#48168D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#48168D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #48168D
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##48168D#FFFFFF#000000##FFFFFF
##48168D1.0011.831.7811.83
#FFFFFF11.831.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003890
Deuteranopia (green-blind)
#00358B
Tritanopia (blue-blind)
#333A53
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #48168d;
/* rgb */ color: rgb(72, 22, 141);
/* oklch */ color: oklch(36.0% 0.176 294.6);
Tailwind
colors: {
  custom: {
    50: '#835baf',
    500: '#48168d',
    950: '#000000',
  },
}
SCSS
$custom: #48168d;
$custom-light: #835baf;
$custom-dark: #000000;
JSON
{
  "hex": "#48168d",
  "rgb": {
    "r": 72,
    "g": 22,
    "b": 141
  },
  "hsl": {
    "h": 265.21,
    "s": 73.006,
    "l": 31.961
  },
  "oklch": {
    "l": 0.36044,
    "c": 0.17566,
    "h": 294.6
  },
  "luminance": 0.03875
}

Semantic roles & 50–950 ramp

primary
#48168D
secondary
#8AC13E
accent
#F038A3
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #48168D

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

Preview Lab → · Contrast checker → · Palette generator →

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