#48117E#48117E

#48117E is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.164 H 300.0°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#48117E
RGBrgb(72, 17, 126)
HSLhsl(270, 76%, 28%)
HSVhsv(270, 87%, 49%)
CMYKcmyk(42.9%, 86.5%, 0%, 50.6%)
CIE-LABlab(21.15, 45.77, -49.67)
CIE-LCHlch(21.15, 67.55, 312.66°)
OKLaboklab(34.14% 0.082 -0.1421)
OKLCHoklch(34.14% 0.164 300)
XYZxyz(6.6379, 3.2849, 20.0189)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#48117E #477E11
analogous
#11117E #48117E #7E117D
triadic
#48117E #7E4811 #117E48
tetradic
#48117E #7E1111 #477E11 #117D7E
square
#48117E #7E1111 #477E11 #117D7E
split-complementary
#48117E #7D7E11 #117E11
monochromatic
#0F041B #290A48 #48117E #6718B4 #8627E2

Accessibility & contrast

On white

12.67
#48117E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#48117E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #48117E
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##48117E#FFFFFF#000000##FFFFFF
##48117E1.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#00327C
Tritanopia (blue-blind)
#3B314A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #48117e;
/* rgb */ color: rgb(72, 17, 126);
/* oklch */ color: oklch(34.1% 0.164 300.0);
Tailwind
colors: {
  custom: {
    50: '#8158a4',
    500: '#48117e',
    950: '#000000',
  },
}
SCSS
$custom: #48117e;
$custom-light: #8158a4;
$custom-dark: #000000;
JSON
{
  "hex": "#48117e",
  "rgb": {
    "r": 72,
    "g": 17,
    "b": 126
  },
  "hsl": {
    "h": 270.275,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.34145,
    "c": 0.16411,
    "h": 300
  },
  "luminance": 0.03285
}

Semantic roles & 50–950 ramp

primary
#48117E
secondary
#75B437
accent
#F33593
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #48117E

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

Preview Lab → · Contrast checker → · Palette generator →

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