#48187B#48187B

#48187B is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.154 H 300.2°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#48187B
RGBrgb(72, 24, 123)
HSLhsl(269, 67%, 29%)
HSVhsv(269, 80%, 48%)
CMYKcmyk(41.5%, 80.5%, 0%, 51.8%)
CIE-LABlab(21.80, 42.29, -46.70)
CIE-LCHlch(21.80, 63.00, 312.17°)
OKLaboklab(34.51% 0.0776 -0.1335)
OKLCHoklch(34.51% 0.154 300.2)
XYZxyz(6.5734, 3.4610, 19.0568)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#48187B #4B7B18
analogous
#181A7B #48187B #7A187B
triadic
#48187B #7B4818 #187B48
tetradic
#48187B #7B181A #4B7B18 #187B7A
square
#48187B #7B181A #4B7B18 #187B7A
split-complementary
#48187B #7B7A18 #1A7B18
monochromatic
#0F051A #2A0E48 #48187B #6622AE #8436D8

Accessibility & contrast

On white

12.41
#48187B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#48187B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #48187B
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##48187B#FFFFFF#000000##FFFFFF
##48187B1.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #48187b;
/* rgb */ color: rgb(72, 24, 123);
/* oklch */ color: oklch(34.5% 0.154 300.2);
Tailwind
colors: {
  custom: {
    50: '#815ba2',
    500: '#48187b',
    950: '#000000',
  },
}
SCSS
$custom: #48187b;
$custom-light: #815ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#48187b",
  "rgb": {
    "r": 72,
    "g": 24,
    "b": 123
  },
  "hsl": {
    "h": 269.091,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.34511,
    "c": 0.15438,
    "h": 300.2
  },
  "luminance": 0.03461
}

Semantic roles & 50–950 ramp

primary
#48187B
secondary
#79B03F
accent
#EA3E97
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #48187B

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

Preview Lab → · Contrast checker → · Palette generator →

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