#48158D#48158D

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

Color values

HEX#48158D
RGBrgb(72, 21, 141)
HSLhsl(266, 74%, 32%)
HSVhsv(266, 85%, 55%)
CMYKcmyk(48.9%, 85.1%, 0%, 44.7%)
CIE-LABlab(23.12, 48.15, -55.87)
CIE-LCHlch(23.12, 73.75, 310.76°)
OKLaboklab(35.96% 0.0738 -0.1603)
OKLCHoklch(35.96% 0.176 294.7)
XYZxyz(7.7471, 3.8369, 25.5266)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#48158D #5A8D15
analogous
#151E8D #48158D #84158D
triadic
#48158D #8D4815 #158D48
tetradic
#48158D #8D151E #5A8D15 #158D84
square
#48158D #8D151E #5A8D15 #158D84
split-complementary
#48158D #8D8415 #1E8D15
monochromatic
#120522 #2D0D58 #48158D #631DC2 #823BE2

Accessibility & contrast

On white

11.88
#48158D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#48158D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #48158D
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##48158D#FFFFFF#000000##FFFFFF
##48158D1.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #48158d;
/* rgb */ color: rgb(72, 21, 141);
/* oklch */ color: oklch(36.0% 0.176 294.7);
Tailwind
colors: {
  custom: {
    50: '#835baf',
    500: '#48158d',
    950: '#000000',
  },
}
SCSS
$custom: #48158d;
$custom-light: #835baf;
$custom-dark: #000000;
JSON
{
  "hex": "#48158d",
  "rgb": {
    "r": 72,
    "g": 21,
    "b": 141
  },
  "hsl": {
    "h": 265.5,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.35956,
    "c": 0.17649,
    "h": 294.7
  },
  "luminance": 0.03837
}

Semantic roles & 50–950 ramp

primary
#48158D
secondary
#89C13D
accent
#F137A2
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #48158D

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

Preview Lab → · Contrast checker → · Palette generator →

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