#48157D#48157D

#48157D is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.160 H 299.9°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#48157D
RGBrgb(72, 21, 125)
HSLhsl(269, 71%, 29%)
HSVhsv(269, 83%, 49%)
CMYKcmyk(42.4%, 83.2%, 0%, 51%)
CIE-LABlab(21.56, 44.05, -48.37)
CIE-LCHlch(21.56, 65.42, 312.32°)
OKLaboklab(34.4% 0.0795 -0.1383)
OKLCHoklch(34.4% 0.16 299.9)
XYZxyz(6.6414, 3.3946, 19.7034)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#48157D #4A7D15
analogous
#15167D #48157D #7C157D
triadic
#48157D #7D4815 #157D48
tetradic
#48157D #7D1516 #4A7D15 #157D7C
square
#48157D #7D1516 #4A7D15 #157D7C
split-complementary
#48157D #7D7C15 #167D15
monochromatic
#0F041A #2A0C49 #48157D #661EB1 #8530DC

Accessibility & contrast

On white

12.51
#48157D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#48157D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #48157D
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##48157D#FFFFFF#000000##FFFFFF
##48157D1.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#00337B
Tritanopia (blue-blind)
#3B324A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #48157d;
/* rgb */ color: rgb(72, 21, 125);
/* oklch */ color: oklch(34.4% 0.160 299.9);
Tailwind
colors: {
  custom: {
    50: '#815aa4',
    500: '#48157d',
    950: '#000000',
  },
}
SCSS
$custom: #48157d;
$custom-light: #815aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#48157d",
  "rgb": {
    "r": 72,
    "g": 21,
    "b": 125
  },
  "hsl": {
    "h": 269.423,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.34399,
    "c": 0.15954,
    "h": 299.9
  },
  "luminance": 0.03395
}

Semantic roles & 50–950 ramp

primary
#48157D
secondary
#78B23C
accent
#EE3A96
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #48157D

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

Preview Lab → · Contrast checker → · Palette generator →

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