#48187D#48187D

#48187D is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.157 H 299.5°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#48187D
RGBrgb(72, 24, 125)
HSLhsl(269, 68%, 29%)
HSVhsv(269, 81%, 49%)
CMYKcmyk(42.4%, 80.8%, 0%, 51%)
CIE-LABlab(21.99, 42.81, -47.67)
CIE-LCHlch(21.99, 64.07, 311.93°)
OKLaboklab(34.7% 0.077 -0.1363)
OKLCHoklch(34.7% 0.157 299.5)
XYZxyz(6.6999, 3.5116, 19.7229)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#48187D #4D7D18
analogous
#181B7D #48187D #7B187D
triadic
#48187D #7D4818 #187D48
tetradic
#48187D #7D181B #4D7D18 #187D7B
square
#48187D #7D181B #4D7D18 #187D7B
split-complementary
#48187D #7D7B18 #1B7D18
monochromatic
#0F051A #2A0E4A #48187D #6622B0 #8437D9

Accessibility & contrast

On white

12.34
#48187D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #48187D
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##48187D#FFFFFF#000000##FFFFFF
##48187D1.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#00347B
Tritanopia (blue-blind)
#3B334A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #48187d;
/* rgb */ color: rgb(72, 24, 125);
/* oklch */ color: oklch(34.7% 0.157 299.5);
Tailwind
colors: {
  custom: {
    50: '#815ba4',
    500: '#48187d',
    950: '#000000',
  },
}
SCSS
$custom: #48187d;
$custom-light: #815ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#48187d",
  "rgb": {
    "r": 72,
    "g": 24,
    "b": 125
  },
  "hsl": {
    "h": 268.515,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.34695,
    "c": 0.15657,
    "h": 299.5
  },
  "luminance": 0.03512
}

Semantic roles & 50–950 ramp

primary
#48187D
secondary
#7BB23F
accent
#EB3D98
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #48187D

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

Preview Lab → · Contrast checker → · Palette generator →

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