#48197D#48197D

#48197D is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.156 H 299.3°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#48197D
RGBrgb(72, 25, 125)
HSLhsl(268, 67%, 29%)
HSVhsv(268, 80%, 49%)
CMYKcmyk(42.4%, 80%, 0%, 51%)
CIE-LABlab(22.14, 42.37, -47.42)
CIE-LCHlch(22.14, 63.60, 311.78°)
OKLaboklab(34.8% 0.0761 -0.1356)
OKLCHoklch(34.8% 0.156 299.3)
XYZxyz(6.7208, 3.5536, 19.7299)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#48197D #4E7D19
analogous
#191C7D #48197D #7A197D
triadic
#48197D #7D4819 #197D48
tetradic
#48197D #7D191C #4E7D19 #197D7A
square
#48197D #7D191C #4E7D19 #197D7A
split-complementary
#48197D #7D7A19 #1C7D19
monochromatic
#0F051A #2B0F4A #48197D #6523B0 #8339D7

Accessibility & contrast

On white

12.27
#48197D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#48197D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #48197D
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##48197D#FFFFFF#000000##FFFFFF
##48197D1.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003580
Deuteranopia (green-blind)
#00347B
Tritanopia (blue-blind)
#3B344A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #48197d;
/* rgb */ color: rgb(72, 25, 125);
/* oklch */ color: oklch(34.8% 0.156 299.3);
Tailwind
colors: {
  custom: {
    50: '#815ca3',
    500: '#48197d',
    950: '#000000',
  },
}
SCSS
$custom: #48197d;
$custom-light: #815ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#48197d",
  "rgb": {
    "r": 72,
    "g": 25,
    "b": 125
  },
  "hsl": {
    "h": 268.2,
    "s": 66.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.34801,
    "c": 0.15552,
    "h": 299.3
  },
  "luminance": 0.03554
}

Semantic roles & 50–950 ramp

primary
#48197D
secondary
#7CB140
accent
#EA3E99
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #48197D

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

Preview Lab → · Contrast checker → · Palette generator →

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