#48157C#48157C

#48157C is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.158 H 300.2°. Best body text is #FFFFFF at 12.55:1 contrast (WCAG AA passes).

Color values

HEX#48157C
RGBrgb(72, 21, 124)
HSLhsl(270, 71%, 28%)
HSVhsv(270, 83%, 49%)
CMYKcmyk(41.9%, 83.1%, 0%, 51.4%)
CIE-LABlab(21.47, 43.79, -47.88)
CIE-LCHlch(21.47, 64.89, 312.44°)
OKLaboklab(34.3% 0.0798 -0.1369)
OKLCHoklch(34.3% 0.158 300.2)
XYZxyz(6.5778, 3.3692, 19.3686)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#48157C #497C15
analogous
#15157C #48157C #7B157C
triadic
#48157C #7C4815 #157C48
tetradic
#48157C #7C1515 #497C15 #157C7B
square
#48157C #7C1515 #497C15 #157C7B
split-complementary
#48157C #7C7B15 #157C15
monochromatic
#0F041A #2A0C48 #48157C #661EB0 #8530DC

Accessibility & contrast

On white

12.55
#48157C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#48157C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #48157C
12.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##48157C#FFFFFF#000000##FFFFFF
##48157C1.0012.551.6712.55
#FFFFFF12.551.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#00337A
Tritanopia (blue-blind)
#3C3249
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #48157c;
/* rgb */ color: rgb(72, 21, 124);
/* oklch */ color: oklch(34.3% 0.158 300.2);
Tailwind
colors: {
  custom: {
    50: '#815aa3',
    500: '#48157c',
    950: '#000000',
  },
}
SCSS
$custom: #48157c;
$custom-light: #815aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#48157c",
  "rgb": {
    "r": 72,
    "g": 21,
    "b": 124
  },
  "hsl": {
    "h": 269.709,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.34304,
    "c": 0.15848,
    "h": 300.2
  },
  "luminance": 0.03369
}

Semantic roles & 50–950 ramp

primary
#48157C
secondary
#77B13C
accent
#EE3A95
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #48157C

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

Preview Lab → · Contrast checker → · Palette generator →

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