#48197E#48197E

#48197E is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.157 H 299.0°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#48197E
RGBrgb(72, 25, 126)
HSLhsl(268, 67%, 30%)
HSVhsv(268, 80%, 49%)
CMYKcmyk(42.9%, 80.2%, 0%, 50.6%)
CIE-LABlab(22.23, 42.64, -47.91)
CIE-LCHlch(22.23, 64.13, 311.67°)
OKLaboklab(34.89% 0.0758 -0.137)
OKLCHoklch(34.89% 0.157 299)
XYZxyz(6.7851, 3.5792, 20.0680)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#48197E #4F7E19
analogous
#191D7E #48197E #7B197E
triadic
#48197E #7E4819 #197E48
tetradic
#48197E #7E191D #4F7E19 #197E7B
square
#48197E #7E191D #4F7E19 #197E7B
split-complementary
#48197E #7E7B19 #1D7E19
monochromatic
#0F051A #2B0F4B #48197E #6523B1 #833AD8

Accessibility & contrast

On white

12.24
#48197E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #48197E
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##48197E#FFFFFF#000000##FFFFFF
##48197E1.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#00347C
Tritanopia (blue-blind)
#3B344B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #48197e;
/* rgb */ color: rgb(72, 25, 126);
/* oklch */ color: oklch(34.9% 0.157 299.0);
Tailwind
colors: {
  custom: {
    50: '#815ca4',
    500: '#48197e',
    950: '#000000',
  },
}
SCSS
$custom: #48197e;
$custom-light: #815ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#48197e",
  "rgb": {
    "r": 72,
    "g": 25,
    "b": 126
  },
  "hsl": {
    "h": 267.921,
    "s": 66.887,
    "l": 29.608
  },
  "oklch": {
    "l": 0.34893,
    "c": 0.15662,
    "h": 299
  },
  "luminance": 0.03579
}

Semantic roles & 50–950 ramp

primary
#48197E
secondary
#7DB241
accent
#EA3E9A
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #48197E

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

Preview Lab → · Contrast checker → · Palette generator →

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