#48156F#48156F

#48156F is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.145 H 305.3°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#48156F
RGBrgb(72, 21, 111)
HSLhsl(274, 68%, 26%)
HSVhsv(274, 81%, 44%)
CMYKcmyk(35.1%, 81.1%, 0%, 56.5%)
CIE-LABlab(20.29, 40.53, -41.46)
CIE-LCHlch(20.29, 57.98, 314.35°)
OKLaboklab(33.12% 0.0836 -0.1181)
OKLCHoklch(33.12% 0.145 305.3)
XYZxyz(5.8092, 3.0618, 15.3208)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#48156F #3C6F15
analogous
#1B156F #48156F #6F1569
triadic
#48156F #6F4815 #156F48
tetradic
#48156F #6F1B15 #3C6F15 #15696F
square
#48156F #6F1B15 #3C6F15 #15696F
split-complementary
#48156F #696F15 #156F1B
monochromatic
#11051A #270B3C #48156F #691FA2 #8B28D6

Accessibility & contrast

On white

13.02
#48156F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#48156F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #48156F
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##48156F#FFFFFF#000000##FFFFFF
##48156F1.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003071
Deuteranopia (green-blind)
#00316D
Tritanopia (blue-blind)
#412C42
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #48156f;
/* rgb */ color: rgb(72, 21, 111);
/* oklch */ color: oklch(33.1% 0.145 305.3);
Tailwind
colors: {
  custom: {
    50: '#7f5999',
    500: '#48156f',
    950: '#000000',
  },
}
SCSS
$custom: #48156f;
$custom-light: #7f5999;
$custom-dark: #000000;
JSON
{
  "hex": "#48156f",
  "rgb": {
    "r": 72,
    "g": 21,
    "b": 111
  },
  "hsl": {
    "h": 274,
    "s": 68.182,
    "l": 25.882
  },
  "oklch": {
    "l": 0.3312,
    "c": 0.14468,
    "h": 305.3
  },
  "luminance": 0.03062
}

Semantic roles & 50–950 ramp

primary
#48156F
secondary
#69A53A
accent
#EB3D88
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #48156F

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

Preview Lab → · Contrast checker → · Palette generator →

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