#48147B#48147B

#48147B is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.158 H 300.7°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#48147B
RGBrgb(72, 20, 123)
HSLhsl(270, 72%, 28%)
HSVhsv(270, 84%, 48%)
CMYKcmyk(41.5%, 83.7%, 0%, 51.8%)
CIE-LABlab(21.24, 43.93, -47.62)
CIE-LCHlch(21.24, 64.79, 312.69°)
OKLaboklab(34.12% 0.0809 -0.1361)
OKLCHoklch(34.12% 0.158 300.7)
XYZxyz(6.4969, 3.3080, 19.0313)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#48147B #477B14
analogous
#14147B #48147B #7B147A
triadic
#48147B #7B4814 #147B48
tetradic
#48147B #7B1414 #477B14 #147A7B
square
#48147B #7B1414 #477B14 #147A7B
split-complementary
#48147B #7A7B14 #147B14
monochromatic
#0F041A #290B46 #48147B #671DB0 #862DDD

Accessibility & contrast

On white

12.64
#48147B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#48147B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #48147B
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##48147B#FFFFFF#000000##FFFFFF
##48147B1.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337E
Deuteranopia (green-blind)
#003279
Tritanopia (blue-blind)
#3C3148
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #48147b;
/* rgb */ color: rgb(72, 20, 123);
/* oklch */ color: oklch(34.1% 0.158 300.7);
Tailwind
colors: {
  custom: {
    50: '#8159a2',
    500: '#48147b',
    950: '#000000',
  },
}
SCSS
$custom: #48147b;
$custom-light: #8159a2;
$custom-dark: #000000;
JSON
{
  "hex": "#48147b",
  "rgb": {
    "r": 72,
    "g": 20,
    "b": 123
  },
  "hsl": {
    "h": 270.291,
    "s": 72.028,
    "l": 28.039
  },
  "oklch": {
    "l": 0.34117,
    "c": 0.15837,
    "h": 300.7
  },
  "luminance": 0.03308
}

Semantic roles & 50–950 ramp

primary
#48147B
secondary
#75B13A
accent
#EF3993
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #48147B

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

Preview Lab → · Contrast checker → · Palette generator →

#48147B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva