#48168F#48168F

#48168F is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.2% C 0.178 H 294.0°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#48168F
RGBrgb(72, 22, 143)
HSLhsl(265, 73%, 32%)
HSVhsv(265, 85%, 56%)
CMYKcmyk(49.7%, 84.6%, 0%, 43.9%)
CIE-LABlab(23.45, 48.29, -56.57)
CIE-LCHlch(23.45, 74.38, 310.49°)
OKLaboklab(36.24% 0.0724 -0.1624)
OKLCHoklch(36.24% 0.178 294)
XYZxyz(7.9160, 3.9345, 26.3236)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#48168F #5D8F16
analogous
#16218F #48168F #84168F
triadic
#48168F #8F4816 #168F48
tetradic
#48168F #8F1621 #5D8F16 #168F84
square
#48168F #8F1621 #5D8F16 #168F84
split-complementary
#48168F #8F8416 #218F16
monochromatic
#130625 #2D0E5A #48168F #631EC4 #823EE1

Accessibility & contrast

On white

11.75
#48168F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#48168F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #48168F
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##48168F#FFFFFF#000000##FFFFFF
##48168F1.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#00368D
Tritanopia (blue-blind)
#323A54
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #48168f;
/* rgb */ color: rgb(72, 22, 143);
/* oklch */ color: oklch(36.2% 0.178 294.0);
Tailwind
colors: {
  custom: {
    50: '#835bb1',
    500: '#48168f',
    950: '#000000',
  },
}
SCSS
$custom: #48168f;
$custom-light: #835bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#48168f",
  "rgb": {
    "r": 72,
    "g": 22,
    "b": 143
  },
  "hsl": {
    "h": 264.793,
    "s": 73.333,
    "l": 32.353
  },
  "oklch": {
    "l": 0.36244,
    "c": 0.1778,
    "h": 294
  },
  "luminance": 0.03935
}

Semantic roles & 50–950 ramp

primary
#48168F
secondary
#8CC13F
accent
#F038A4
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #48168F

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

Preview Lab → · Contrast checker → · Palette generator →

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