#48187C#48187C

#48187C is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.155 H 299.8°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#48187C
RGBrgb(72, 24, 124)
HSLhsl(269, 68%, 29%)
HSVhsv(269, 81%, 49%)
CMYKcmyk(41.9%, 80.6%, 0%, 51.4%)
CIE-LABlab(21.89, 42.55, -47.18)
CIE-LCHlch(21.89, 63.54, 312.05°)
OKLaboklab(34.6% 0.0773 -0.1349)
OKLCHoklch(34.6% 0.155 299.8)
XYZxyz(6.6363, 3.4861, 19.3881)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#48187C #4C7C18
analogous
#181A7C #48187C #7A187C
triadic
#48187C #7C4818 #187C48
tetradic
#48187C #7C181A #4C7C18 #187C7A
square
#48187C #7C181A #4C7C18 #187C7A
split-complementary
#48187C #7C7A18 #1A7C18
monochromatic
#0F051A #2A0E49 #48187C #6622AF #8436D8

Accessibility & contrast

On white

12.37
#48187C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#48187C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #48187C
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##48187C#FFFFFF#000000##FFFFFF
##48187C1.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#00347A
Tritanopia (blue-blind)
#3C334A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #48187c;
/* rgb */ color: rgb(72, 24, 124);
/* oklch */ color: oklch(34.6% 0.155 299.8);
Tailwind
colors: {
  custom: {
    50: '#815ba3',
    500: '#48187c',
    950: '#000000',
  },
}
SCSS
$custom: #48187c;
$custom-light: #815ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#48187c",
  "rgb": {
    "r": 72,
    "g": 24,
    "b": 124
  },
  "hsl": {
    "h": 268.8,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.34603,
    "c": 0.15547,
    "h": 299.8
  },
  "luminance": 0.03486
}

Semantic roles & 50–950 ramp

primary
#48187C
secondary
#7AB13F
accent
#EA3D97
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #48187C

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

Preview Lab → · Contrast checker → · Palette generator →

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