#48197F#48197F

#48197F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.158 H 298.6°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#48197F
RGBrgb(72, 25, 127)
HSLhsl(268, 67%, 30%)
HSVhsv(268, 80%, 50%)
CMYKcmyk(43.3%, 80.3%, 0%, 50.2%)
CIE-LABlab(22.32, 42.90, -48.39)
CIE-LCHlch(22.32, 64.67, 311.56°)
OKLaboklab(34.99% 0.0755 -0.1384)
OKLCHoklch(34.99% 0.158 298.6)
XYZxyz(6.8499, 3.6052, 20.4095)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#48197F #507F19
analogous
#191D7F #48197F #7B197F
triadic
#48197F #7F4819 #197F48
tetradic
#48197F #7F191D #507F19 #197F7B
square
#48197F #7F191D #507F19 #197F7B
split-complementary
#48197F #7F7B19 #1D7F19
monochromatic
#0E051A #2B0F4C #48197F #6523B2 #833AD8

Accessibility & contrast

On white

12.20
#48197F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#48197F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #48197F
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##48197F#FFFFFF#000000##FFFFFF
##48197F1.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#00347D
Tritanopia (blue-blind)
#3A354C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #48197f;
/* rgb */ color: rgb(72, 25, 127);
/* oklch */ color: oklch(35.0% 0.158 298.6);
Tailwind
colors: {
  custom: {
    50: '#815ca5',
    500: '#48197f',
    950: '#000000',
  },
}
SCSS
$custom: #48197f;
$custom-light: #815ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#48197f",
  "rgb": {
    "r": 72,
    "g": 25,
    "b": 127
  },
  "hsl": {
    "h": 267.647,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.34986,
    "c": 0.15772,
    "h": 298.6
  },
  "luminance": 0.03605
}

Semantic roles & 50–950 ramp

primary
#48197F
secondary
#7EB341
accent
#EA3E9B
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #48197F

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

Preview Lab → · Contrast checker → · Palette generator →

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