#48177E#48177E

#48177E is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.159 H 299.2°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#48177E
RGBrgb(72, 23, 126)
HSLhsl(269, 69%, 29%)
HSVhsv(269, 82%, 49%)
CMYKcmyk(42.9%, 81.7%, 0%, 50.6%)
CIE-LABlab(21.93, 43.49, -48.39)
CIE-LCHlch(21.93, 65.06, 311.95°)
OKLaboklab(34.69% 0.0775 -0.1384)
OKLCHoklch(34.69% 0.159 299.2)
XYZxyz(6.7438, 3.4968, 20.0543)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#48177E #4D7E17
analogous
#17197E #48177E #7C177E
triadic
#48177E #7E4817 #177E48
tetradic
#48177E #7E1719 #4D7E17 #177E7C
square
#48177E #7E1719 #4D7E17 #177E7C
split-complementary
#48177E #7E7C17 #197E17
monochromatic
#0F051A #2A0E4A #48177E #6620B2 #8435DA

Accessibility & contrast

On white

12.36
#48177E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#48177E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #48177E
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##48177E#FFFFFF#000000##FFFFFF
##48177E1.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#00347C
Tritanopia (blue-blind)
#3B334B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #48177e;
/* rgb */ color: rgb(72, 23, 126);
/* oklch */ color: oklch(34.7% 0.159 299.2);
Tailwind
colors: {
  custom: {
    50: '#815ba4',
    500: '#48177e',
    950: '#000000',
  },
}
SCSS
$custom: #48177e;
$custom-light: #815ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#48177e",
  "rgb": {
    "r": 72,
    "g": 23,
    "b": 126
  },
  "hsl": {
    "h": 268.544,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.34687,
    "c": 0.15867,
    "h": 299.2
  },
  "luminance": 0.03497
}

Semantic roles & 50–950 ramp

primary
#48177E
secondary
#7BB33E
accent
#EC3C98
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #48177E

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

Preview Lab → · Contrast checker → · Palette generator →

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