#48125B#48125B

#48125B is a dark, vivid purple. Relative luminance 0.026; OKLCH L 31.1% C 0.127 H 315.5°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#48125B
RGBrgb(72, 18, 91)
HSLhsl(284, 67%, 21%)
HSVhsv(284, 80%, 36%)
CMYKcmyk(20.9%, 80.2%, 0%, 64.3%)
CIE-LABlab(18.21, 37.04, -31.66)
CIE-LCHlch(18.21, 48.73, 319.48°)
OKLaboklab(31.14% 0.0908 -0.0893)
OKLCHoklch(31.14% 0.127 315.5)
XYZxyz(4.7768, 2.5658, 10.1391)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#48125B #255B12
analogous
#24125B #48125B #5B124A
triadic
#48125B #5B4812 #125B48
tetradic
#48125B #5B2412 #255B12 #124A5B
square
#48125B #5B2412 #255B12 #124A5B
split-complementary
#48125B #4A5B12 #125B24
monochromatic
#14051A #200828 #48125B #701C8E #9926C1

Accessibility & contrast

On white

13.88
#48125B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#48125B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #48125B
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##48125B#FFFFFF#000000##FFFFFF
##48125B1.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295D
Deuteranopia (green-blind)
#102E59
Tritanopia (blue-blind)
#472236
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #48125b;
/* rgb */ color: rgb(72, 18, 91);
/* oklch */ color: oklch(31.1% 0.127 315.5);
Tailwind
colors: {
  custom: {
    50: '#7e568a',
    500: '#48125b',
    950: '#000000',
  },
}
SCSS
$custom: #48125b;
$custom-light: #7e568a;
$custom-dark: #000000;
JSON
{
  "hex": "#48125b",
  "rgb": {
    "r": 72,
    "g": 18,
    "b": 91
  },
  "hsl": {
    "h": 284.384,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.31142,
    "c": 0.12735,
    "h": 315.5
  },
  "luminance": 0.02566
}

Semantic roles & 50–950 ramp

primary
#48125B
secondary
#4E9335
accent
#EA3E6B
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#0A030C
muted
#7C787D

Preview Lab

Preview with #48125B

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

Preview Lab → · Contrast checker → · Palette generator →

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