#48186F#48186F

#48186F is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.141 H 304.9°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#48186F
RGBrgb(72, 24, 111)
HSLhsl(273, 64%, 26%)
HSVhsv(273, 78%, 44%)
CMYKcmyk(35.1%, 78.4%, 0%, 56.5%)
CIE-LABlab(20.75, 39.22, -40.71)
CIE-LCHlch(20.75, 56.54, 313.93°)
OKLaboklab(33.44% 0.0807 -0.1159)
OKLCHoklch(33.44% 0.141 304.9)
XYZxyz(5.8677, 3.1787, 15.3403)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#48186F #3F6F18
analogous
#1D186F #48186F #6F186B
triadic
#48186F #6F4818 #186F48
tetradic
#48186F #6F1D18 #3F6F18 #186B6F
square
#48186F #6F1D18 #3F6F18 #186B6F
split-complementary
#48186F #6B6F18 #186F1D
monochromatic
#100519 #270D3D #48186F #6923A1 #892FD2

Accessibility & contrast

On white

12.84
#48186F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#48186F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #48186F
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##48186F#FFFFFF#000000##FFFFFF
##48186F1.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003171
Deuteranopia (green-blind)
#00326D
Tritanopia (blue-blind)
#412E42
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #48186f;
/* rgb */ color: rgb(72, 24, 111);
/* oklch */ color: oklch(33.4% 0.141 304.9);
Tailwind
colors: {
  custom: {
    50: '#7f5a99',
    500: '#48186f',
    950: '#000000',
  },
}
SCSS
$custom: #48186f;
$custom-light: #7f5a99;
$custom-dark: #000000;
JSON
{
  "hex": "#48186f",
  "rgb": {
    "r": 72,
    "g": 24,
    "b": 111
  },
  "hsl": {
    "h": 273.103,
    "s": 64.444,
    "l": 26.471
  },
  "oklch": {
    "l": 0.33441,
    "c": 0.14124,
    "h": 304.9
  },
  "luminance": 0.03179
}

Semantic roles & 50–950 ramp

primary
#48186F
secondary
#6CA53E
accent
#E7408B
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #48186F

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

Preview Lab → · Contrast checker → · Palette generator →

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