#48188C#48188C

#48188C is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.1% C 0.173 H 294.7°. Best body text is #FFFFFF at 11.77:1 contrast (WCAG AA passes).

Color values

HEX#48188C
RGBrgb(72, 24, 140)
HSLhsl(265, 71%, 32%)
HSVhsv(265, 83%, 55%)
CMYKcmyk(48.6%, 82.9%, 0%, 45.1%)
CIE-LABlab(23.42, 46.73, -54.76)
CIE-LCHlch(23.42, 71.99, 310.48°)
OKLaboklab(36.13% 0.0721 -0.1571)
OKLCHoklch(36.13% 0.173 294.7)
XYZxyz(7.7314, 3.9242, 25.1559)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#48188C #5C8C18
analogous
#18228C #48188C #82188C
triadic
#48188C #8C4818 #188C48
tetradic
#48188C #8C1822 #5C8C18 #188C82
square
#48188C #8C1822 #5C8C18 #188C82
split-complementary
#48188C #8C8218 #228C18
monochromatic
#120624 #2D0F58 #48188C #6321C0 #8240DE

Accessibility & contrast

On white

11.77
#48188C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#48188C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #48188C
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##48188C#FFFFFF#000000##FFFFFF
##48188C1.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398F
Deuteranopia (green-blind)
#00368A
Tritanopia (blue-blind)
#343A53
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #48188c;
/* rgb */ color: rgb(72, 24, 140);
/* oklch */ color: oklch(36.1% 0.173 294.7);
Tailwind
colors: {
  custom: {
    50: '#835caf',
    500: '#48188c',
    950: '#000000',
  },
}
SCSS
$custom: #48188c;
$custom-light: #835caf;
$custom-dark: #000000;
JSON
{
  "hex": "#48188c",
  "rgb": {
    "r": 72,
    "g": 24,
    "b": 140
  },
  "hsl": {
    "h": 264.828,
    "s": 70.732,
    "l": 32.157
  },
  "oklch": {
    "l": 0.36129,
    "c": 0.17286,
    "h": 294.7
  },
  "luminance": 0.03924
}

Semantic roles & 50–950 ramp

primary
#48188C
secondary
#8BBF41
accent
#ED3AA3
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #48188C

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

Preview Lab → · Contrast checker → · Palette generator →

#48188C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva