#48175B#48175B

#48175B is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.7% C 0.121 H 314.9°. Best body text is #FFFFFF at 13.56:1 contrast (WCAG AA passes).

Color values

HEX#48175B
RGBrgb(72, 23, 91)
HSLhsl(283, 60%, 22%)
HSVhsv(283, 75%, 36%)
CMYKcmyk(20.9%, 74.7%, 0%, 64.3%)
CIE-LABlab(19.00, 34.82, -30.40)
CIE-LCHlch(19.00, 46.23, 318.88°)
OKLaboklab(31.7% 0.0852 -0.0856)
OKLCHoklch(31.7% 0.121 314.9)
XYZxyz(4.8669, 2.7460, 10.1692)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#48175B #2A5B17
analogous
#26175B #48175B #5B174C
triadic
#48175B #5B4817 #175B48
tetradic
#48175B #5B2617 #2A5B17 #174C5B
square
#48175B #5B2617 #2A5B17 #174C5B
split-complementary
#48175B #4C5B17 #175B26
monochromatic
#130618 #210B2A #48175B #6F238C #9530BD

Accessibility & contrast

On white

13.56
#48175B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#48175B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #48175B
13.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##48175B#FFFFFF#000000##FFFFFF
##48175B1.0013.561.5513.56
#FFFFFF13.561.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5D
Deuteranopia (green-blind)
#152F59
Tritanopia (blue-blind)
#462537
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #48175b;
/* rgb */ color: rgb(72, 23, 91);
/* oklch */ color: oklch(31.7% 0.121 314.9);
Tailwind
colors: {
  custom: {
    50: '#7e598a',
    500: '#48175b',
    950: '#000000',
  },
}
SCSS
$custom: #48175b;
$custom-light: #7e598a;
$custom-dark: #000000;
JSON
{
  "hex": "#48175b",
  "rgb": {
    "r": 72,
    "g": 23,
    "b": 91
  },
  "hsl": {
    "h": 283.235,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.31699,
    "c": 0.12078,
    "h": 314.9
  },
  "luminance": 0.02746
}

Semantic roles & 50–950 ramp

primary
#48175B
secondary
#54923C
accent
#E34571
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#0A040C
muted
#7C797D

Preview Lab

Preview with #48175B

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

Preview Lab → · Contrast checker → · Palette generator →

#48175B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva