#48187A#48187A

#48187A is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.153 H 300.5°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#48187A
RGBrgb(72, 24, 122)
HSLhsl(269, 67%, 29%)
HSVhsv(269, 80%, 48%)
CMYKcmyk(41%, 80.3%, 0%, 52.2%)
CIE-LABlab(21.71, 42.03, -46.21)
CIE-LCHlch(21.71, 62.47, 312.29°)
OKLaboklab(34.42% 0.0779 -0.132)
OKLCHoklch(34.42% 0.153 300.5)
XYZxyz(6.5111, 3.4361, 18.7288)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#48187A #4A7A18
analogous
#18197A #48187A #79187A
triadic
#48187A #7A4818 #187A48
tetradic
#48187A #7A1819 #4A7A18 #187A79
square
#48187A #7A1819 #4A7A18 #187A79
split-complementary
#48187A #7A7918 #197A18
monochromatic
#0F051A #2A0E47 #48187A #6622AD #8535D7

Accessibility & contrast

On white

12.45
#48187A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #48187A
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##48187A#FFFFFF#000000##FFFFFF
##48187A1.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347D
Deuteranopia (green-blind)
#003378
Tritanopia (blue-blind)
#3C3249
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #48187a;
/* rgb */ color: rgb(72, 24, 122);
/* oklch */ color: oklch(34.4% 0.153 300.5);
Tailwind
colors: {
  custom: {
    50: '#805ba1',
    500: '#48187a',
    950: '#000000',
  },
}
SCSS
$custom: #48187a;
$custom-light: #805ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#48187a",
  "rgb": {
    "r": 72,
    "g": 24,
    "b": 122
  },
  "hsl": {
    "h": 269.388,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.34419,
    "c": 0.15329,
    "h": 300.5
  },
  "luminance": 0.03436
}

Semantic roles & 50–950 ramp

primary
#48187A
secondary
#78AF3F
accent
#EA3E96
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #48187A

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

Preview Lab → · Contrast checker → · Palette generator →

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