#48197A#48197A

#48197A is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.152 H 300.4°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#48197A
RGBrgb(72, 25, 122)
HSLhsl(269, 66%, 29%)
HSVhsv(269, 80%, 48%)
CMYKcmyk(41%, 79.5%, 0%, 52.2%)
CIE-LABlab(21.87, 41.59, -45.96)
CIE-LCHlch(21.87, 61.98, 312.15°)
OKLaboklab(34.53% 0.077 -0.1313)
OKLCHoklch(34.53% 0.152 300.4)
XYZxyz(6.5321, 3.4781, 18.7358)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#48197A #4B7A19
analogous
#191B7A #48197A #79197A
triadic
#48197A #7A4819 #197A48
tetradic
#48197A #7A191B #4B7A19 #197A79
square
#48197A #7A191B #4B7A19 #197A79
split-complementary
#48197A #7A7919 #1B7A19
monochromatic
#0F0519 #2A0F47 #48197A #6623AD #8437D6

Accessibility & contrast

On white

12.38
#48197A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#48197A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #48197A
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##48197A#FFFFFF#000000##FFFFFF
##48197A1.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347D
Deuteranopia (green-blind)
#003478
Tritanopia (blue-blind)
#3C3349
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #48197a;
/* rgb */ color: rgb(72, 25, 122);
/* oklch */ color: oklch(34.5% 0.152 300.4);
Tailwind
colors: {
  custom: {
    50: '#805ba1',
    500: '#48197a',
    950: '#000000',
  },
}
SCSS
$custom: #48197a;
$custom-light: #805ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#48197a",
  "rgb": {
    "r": 72,
    "g": 25,
    "b": 122
  },
  "hsl": {
    "h": 269.072,
    "s": 65.986,
    "l": 28.824
  },
  "oklch": {
    "l": 0.34526,
    "c": 0.15221,
    "h": 300.4
  },
  "luminance": 0.03478
}

Semantic roles & 50–950 ramp

primary
#48197A
secondary
#79AF40
accent
#E93F97
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #48197A

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

Preview Lab → · Contrast checker → · Palette generator →

#48197A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva