#48157F#48157F

#48157F is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.6% C 0.162 H 299.2°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#48157F
RGBrgb(72, 21, 127)
HSLhsl(269, 72%, 29%)
HSVhsv(269, 83%, 50%)
CMYKcmyk(43.3%, 83.5%, 0%, 50.2%)
CIE-LABlab(21.75, 44.55, -49.33)
CIE-LCHlch(21.75, 66.47, 312.09°)
OKLaboklab(34.59% 0.0788 -0.1412)
OKLCHoklch(34.59% 0.162 299.2)
XYZxyz(6.7704, 3.4463, 20.3830)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#48157F #4C7F15
analogous
#15177F #48157F #7D157F
triadic
#48157F #7F4815 #157F48
tetradic
#48157F #7F1517 #4C7F15 #157F7D
square
#48157F #7F1517 #4C7F15 #157F7D
split-complementary
#48157F #7F7D15 #177F15
monochromatic
#0F041A #2A0C4A #48157F #661EB4 #8431DD

Accessibility & contrast

On white

12.43
#48157F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#48157F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #48157F
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##48157F#FFFFFF#000000##FFFFFF
##48157F1.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#00337D
Tritanopia (blue-blind)
#3A334B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #48157f;
/* rgb */ color: rgb(72, 21, 127);
/* oklch */ color: oklch(34.6% 0.162 299.2);
Tailwind
colors: {
  custom: {
    50: '#815aa5',
    500: '#48157f',
    950: '#000000',
  },
}
SCSS
$custom: #48157f;
$custom-light: #815aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#48157f",
  "rgb": {
    "r": 72,
    "g": 21,
    "b": 127
  },
  "hsl": {
    "h": 268.868,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.34588,
    "c": 0.16166,
    "h": 299.2
  },
  "luminance": 0.03446
}

Semantic roles & 50–950 ramp

primary
#48157F
secondary
#7AB43C
accent
#EE3997
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #48157F

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

Preview Lab → · Contrast checker → · Palette generator →

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