#48177F#48177F

#48177F is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.160 H 298.9°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#48177F
RGBrgb(72, 23, 127)
HSLhsl(268, 69%, 29%)
HSVhsv(268, 82%, 50%)
CMYKcmyk(43.3%, 81.9%, 0%, 50.2%)
CIE-LABlab(22.03, 43.75, -48.87)
CIE-LCHlch(22.03, 65.59, 311.83°)
OKLaboklab(34.78% 0.0772 -0.1398)
OKLCHoklch(34.78% 0.16 298.9)
XYZxyz(6.8087, 3.5227, 20.3958)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#48177F #4E7F17
analogous
#171A7F #48177F #7C177F
triadic
#48177F #7F4817 #177F48
tetradic
#48177F #7F171A #4E7F17 #177F7C
square
#48177F #7F171A #4E7F17 #177F7C
split-complementary
#48177F #7F7C17 #1A7F17
monochromatic
#0F051A #2B0E4B #48177F #6520B3 #8336DB

Accessibility & contrast

On white

12.32
#48177F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #48177F
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##48177F#FFFFFF#000000##FFFFFF
##48177F1.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#00347D
Tritanopia (blue-blind)
#3A344B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #48177f;
/* rgb */ color: rgb(72, 23, 127);
/* oklch */ color: oklch(34.8% 0.160 298.9);
Tailwind
colors: {
  custom: {
    50: '#815ba5',
    500: '#48177f',
    950: '#000000',
  },
}
SCSS
$custom: #48177f;
$custom-light: #815ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#48177f",
  "rgb": {
    "r": 72,
    "g": 23,
    "b": 127
  },
  "hsl": {
    "h": 268.269,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.34781,
    "c": 0.15975,
    "h": 298.9
  },
  "luminance": 0.03523
}

Semantic roles & 50–950 ramp

primary
#48177F
secondary
#7CB43E
accent
#EC3C99
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #48177F

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

Preview Lab → · Contrast checker → · Palette generator →

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