#48168E#48168E

#48168E is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.1% C 0.177 H 294.3°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#48168E
RGBrgb(72, 22, 142)
HSLhsl(265, 73%, 32%)
HSVhsv(265, 85%, 56%)
CMYKcmyk(49.3%, 84.5%, 0%, 44.3%)
CIE-LABlab(23.35, 48.03, -56.11)
CIE-LCHlch(23.35, 73.86, 310.56°)
OKLaboklab(36.14% 0.0728 -0.1611)
OKLCHoklch(36.14% 0.177 294.3)
XYZxyz(7.8405, 3.9043, 25.9264)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#48168E #5C8E16
analogous
#16208E #48168E #84168E
triadic
#48168E #8E4816 #168E48
tetradic
#48168E #8E1620 #5C8E16 #168E84
square
#48168E #8E1620 #5C8E16 #168E84
split-complementary
#48168E #8E8416 #208E16
monochromatic
#120624 #2D0E59 #48168E #631EC3 #823DE1

Accessibility & contrast

On white

11.79
#48168E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #48168E
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##48168E#FFFFFF#000000##FFFFFF
##48168E1.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #48168e;
/* rgb */ color: rgb(72, 22, 142);
/* oklch */ color: oklch(36.1% 0.177 294.3);
Tailwind
colors: {
  custom: {
    50: '#835bb0',
    500: '#48168e',
    950: '#000000',
  },
}
SCSS
$custom: #48168e;
$custom-light: #835bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#48168e",
  "rgb": {
    "r": 72,
    "g": 22,
    "b": 142
  },
  "hsl": {
    "h": 265,
    "s": 73.171,
    "l": 32.157
  },
  "oklch": {
    "l": 0.36143,
    "c": 0.17673,
    "h": 294.3
  },
  "luminance": 0.03905
}

Semantic roles & 50–950 ramp

primary
#48168E
secondary
#8BC13F
accent
#F038A3
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #48168E

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

Preview Lab → · Contrast checker → · Palette generator →

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