#48117F#48117F

#48117F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.2% C 0.165 H 299.6°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#48117F
RGBrgb(72, 17, 127)
HSLhsl(270, 76%, 28%)
HSVhsv(270, 87%, 50%)
CMYKcmyk(43.3%, 86.6%, 0%, 50.2%)
CIE-LABlab(21.25, 46.02, -50.15)
CIE-LCHlch(21.25, 68.06, 312.54°)
OKLaboklab(34.24% 0.0817 -0.1435)
OKLCHoklch(34.24% 0.165 299.6)
XYZxyz(6.7027, 3.3108, 20.3605)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#48117F #487F11
analogous
#11117F #48117F #7F117F
triadic
#48117F #7F4811 #117F48
tetradic
#48117F #7F1111 #487F11 #117F7F
square
#48117F #7F1111 #487F11 #117F7F
split-complementary
#48117F #7F7F11 #117F11
monochromatic
#0F041B #290A49 #48117F #6718B5 #8528E2

Accessibility & contrast

On white

12.63
#48117F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #48117F
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##48117F#FFFFFF#000000##FFFFFF
##48117F1.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#00327D
Tritanopia (blue-blind)
#3A324A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #48117f;
/* rgb */ color: rgb(72, 17, 127);
/* oklch */ color: oklch(34.2% 0.165 299.6);
Tailwind
colors: {
  custom: {
    50: '#8258a5',
    500: '#48117f',
    950: '#000000',
  },
}
SCSS
$custom: #48117f;
$custom-light: #8258a5;
$custom-dark: #000000;
JSON
{
  "hex": "#48117f",
  "rgb": {
    "r": 72,
    "g": 17,
    "b": 127
  },
  "hsl": {
    "h": 270,
    "s": 76.389,
    "l": 28.235
  },
  "oklch": {
    "l": 0.34242,
    "c": 0.16514,
    "h": 299.6
  },
  "luminance": 0.03311
}

Semantic roles & 50–950 ramp

primary
#48117F
secondary
#76B537
accent
#F33594
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #48117F

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

Preview Lab → · Contrast checker → · Palette generator →

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