#48177A#48177A

#48177A is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.154 H 300.7°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#48177A
RGBrgb(72, 23, 122)
HSLhsl(270, 68%, 28%)
HSVhsv(270, 81%, 48%)
CMYKcmyk(41%, 81.1%, 0%, 52.2%)
CIE-LABlab(21.56, 42.46, -46.45)
CIE-LCHlch(21.56, 62.93, 312.43°)
OKLaboklab(34.32% 0.0788 -0.1327)
OKLCHoklch(34.32% 0.154 300.7)
XYZxyz(6.4909, 3.3956, 18.7220)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#48177A #497A17
analogous
#17177A #48177A #79177A
triadic
#48177A #7A4817 #177A48
tetradic
#48177A #7A1717 #497A17 #177A79
square
#48177A #7A1717 #497A17 #177A79
split-complementary
#48177A #7A7917 #177A17
monochromatic
#0F051A #2A0D47 #48177A #6621AD #8533D9

Accessibility & contrast

On white

12.51
#48177A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#48177A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #48177A
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##48177A#FFFFFF#000000##FFFFFF
##48177A1.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #48177a;
/* rgb */ color: rgb(72, 23, 122);
/* oklch */ color: oklch(34.3% 0.154 300.7);
Tailwind
colors: {
  custom: {
    50: '#815aa1',
    500: '#48177a',
    950: '#000000',
  },
}
SCSS
$custom: #48177a;
$custom-light: #815aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#48177a",
  "rgb": {
    "r": 72,
    "g": 23,
    "b": 122
  },
  "hsl": {
    "h": 269.697,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.34315,
    "c": 0.15434,
    "h": 300.7
  },
  "luminance": 0.03396
}

Semantic roles & 50–950 ramp

primary
#48177A
secondary
#77AF3E
accent
#EB3D95
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #48177A

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

Preview Lab → · Contrast checker → · Palette generator →

#48177A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva