#48157E#48157E

#48157E is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.5% C 0.161 H 299.5°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#48157E
RGBrgb(72, 21, 126)
HSLhsl(269, 71%, 29%)
HSVhsv(269, 83%, 49%)
CMYKcmyk(42.9%, 83.3%, 0%, 50.6%)
CIE-LABlab(21.65, 44.30, -48.85)
CIE-LCHlch(21.65, 65.94, 312.21°)
OKLaboklab(34.49% 0.0791 -0.1398)
OKLCHoklch(34.49% 0.161 299.5)
XYZxyz(6.7056, 3.4203, 20.0415)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#48157E #4B7E15
analogous
#15167E #48157E #7D157E
triadic
#48157E #7E4815 #157E48
tetradic
#48157E #7E1516 #4B7E15 #157E7D
square
#48157E #7E1516 #4B7E15 #157E7D
split-complementary
#48157E #7E7D15 #167E15
monochromatic
#0F041A #2A0C4A #48157E #661EB2 #8431DD

Accessibility & contrast

On white

12.47
#48157E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #48157E
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##48157E#FFFFFF#000000##FFFFFF
##48157E1.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#00337C
Tritanopia (blue-blind)
#3B334A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #48157e;
/* rgb */ color: rgb(72, 21, 126);
/* oklch */ color: oklch(34.5% 0.161 299.5);
Tailwind
colors: {
  custom: {
    50: '#815aa4',
    500: '#48157e',
    950: '#000000',
  },
}
SCSS
$custom: #48157e;
$custom-light: #815aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#48157e",
  "rgb": {
    "r": 72,
    "g": 21,
    "b": 126
  },
  "hsl": {
    "h": 269.143,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.34493,
    "c": 0.1606,
    "h": 299.5
  },
  "luminance": 0.0342
}

Semantic roles & 50–950 ramp

primary
#48157E
secondary
#79B33C
accent
#EE3A96
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #48157E

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

Preview Lab → · Contrast checker → · Palette generator →

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