#48177B#48177B

#48177B is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.155 H 300.3°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#48177B
RGBrgb(72, 23, 123)
HSLhsl(269, 68%, 29%)
HSVhsv(269, 81%, 48%)
CMYKcmyk(41.5%, 81.3%, 0%, 51.8%)
CIE-LABlab(21.65, 42.72, -46.94)
CIE-LCHlch(21.65, 63.47, 312.31°)
OKLaboklab(34.41% 0.0785 -0.1342)
OKLCHoklch(34.41% 0.155 300.3)
XYZxyz(6.5531, 3.4205, 19.0500)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#48177B #4A7B17
analogous
#17187B #48177B #7A177B
triadic
#48177B #7B4817 #177B48
tetradic
#48177B #7B1718 #4A7B17 #177B7A
square
#48177B #7B1718 #4A7B17 #177B7A
split-complementary
#48177B #7B7A17 #187B17
monochromatic
#0F051A #2A0D47 #48177B #6621AF #8533D9

Accessibility & contrast

On white

12.47
#48177B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #48177B
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##48177B#FFFFFF#000000##FFFFFF
##48177B1.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#003379
Tritanopia (blue-blind)
#3C3249
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #48177b;
/* rgb */ color: rgb(72, 23, 123);
/* oklch */ color: oklch(34.4% 0.155 300.3);
Tailwind
colors: {
  custom: {
    50: '#815ba2',
    500: '#48177b',
    950: '#000000',
  },
}
SCSS
$custom: #48177b;
$custom-light: #815ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#48177b",
  "rgb": {
    "r": 72,
    "g": 23,
    "b": 123
  },
  "hsl": {
    "h": 269.4,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.34408,
    "c": 0.15542,
    "h": 300.3
  },
  "luminance": 0.03421
}

Semantic roles & 50–950 ramp

primary
#48177B
secondary
#78B03E
accent
#EB3C96
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #48177B

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

Preview Lab → · Contrast checker → · Palette generator →

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