#48186C#48186C

#48186C is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.138 H 306.2°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#48186C
RGBrgb(72, 24, 108)
HSLhsl(274, 64%, 26%)
HSVhsv(274, 78%, 42%)
CMYKcmyk(33.3%, 77.8%, 0%, 57.6%)
CIE-LABlab(20.49, 38.47, -39.18)
CIE-LCHlch(20.49, 54.91, 314.48°)
OKLaboklab(33.18% 0.0814 -0.1114)
OKLCHoklch(33.18% 0.138 306.2)
XYZxyz(5.7053, 3.1137, 14.4849)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#48186C #3C6C18
analogous
#1E186C #48186C #6C1866
triadic
#48186C #6C4818 #186C48
tetradic
#48186C #6C1E18 #3C6C18 #18666C
square
#48186C #6C1E18 #3C6C18 #18666C
split-complementary
#48186C #666C18 #186C1E
monochromatic
#110619 #270D3A #48186C #69239E #8B2ED0

Accessibility & contrast

On white

12.94
#48186C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#48186C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #48186C
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##48186C#FFFFFF#000000##FFFFFF
##48186C1.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306E
Deuteranopia (green-blind)
#00326A
Tritanopia (blue-blind)
#422C41
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #48186c;
/* rgb */ color: rgb(72, 24, 108);
/* oklch */ color: oklch(33.2% 0.138 306.2);
Tailwind
colors: {
  custom: {
    50: '#7f5a97',
    500: '#48186c',
    950: '#000000',
  },
}
SCSS
$custom: #48186c;
$custom-light: #7f5a97;
$custom-dark: #000000;
JSON
{
  "hex": "#48186c",
  "rgb": {
    "r": 72,
    "g": 24,
    "b": 108
  },
  "hsl": {
    "h": 274.286,
    "s": 63.636,
    "l": 25.882
  },
  "oklch": {
    "l": 0.33184,
    "c": 0.13795,
    "h": 306.2
  },
  "luminance": 0.03114
}

Semantic roles & 50–950 ramp

primary
#48186C
secondary
#69A23E
accent
#E74188
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0A040D
muted
#7C797E

Preview Lab

Preview with #48186C

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

Preview Lab → · Contrast checker → · Palette generator →

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