#48198B#48198B

#48198B is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.1% C 0.171 H 294.8°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#48198B
RGBrgb(72, 25, 139)
HSLhsl(265, 70%, 32%)
HSVhsv(265, 82%, 55%)
CMYKcmyk(48.2%, 82%, 0%, 45.5%)
CIE-LABlab(23.46, 46.06, -54.07)
CIE-LCHlch(23.46, 71.02, 310.43°)
OKLaboklab(36.13% 0.0717 -0.1551)
OKLCHoklch(36.13% 0.171 294.8)
XYZxyz(7.6790, 3.9368, 24.7764)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#48198B #5C8B19
analogous
#19238B #48198B #81198B
triadic
#48198B #8B4819 #198B48
tetradic
#48198B #8B1923 #5C8B19 #198B81
square
#48198B #8B1923 #5C8B19 #198B81
split-complementary
#48198B #8B8119 #238B19
monochromatic
#120623 #2D1057 #48198B #6322BF #8241DD

Accessibility & contrast

On white

11.75
#48198B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#48198B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #48198B
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##48198B#FFFFFF#000000##FFFFFF
##48198B1.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398E
Deuteranopia (green-blind)
#003689
Tritanopia (blue-blind)
#343A53
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #48198b;
/* rgb */ color: rgb(72, 25, 139);
/* oklch */ color: oklch(36.1% 0.171 294.8);
Tailwind
colors: {
  custom: {
    50: '#835cae',
    500: '#48198b',
    950: '#000000',
  },
}
SCSS
$custom: #48198b;
$custom-light: #835cae;
$custom-dark: #000000;
JSON
{
  "hex": "#48198b",
  "rgb": {
    "r": 72,
    "g": 25,
    "b": 139
  },
  "hsl": {
    "h": 264.737,
    "s": 69.512,
    "l": 32.157
  },
  "oklch": {
    "l": 0.36129,
    "c": 0.17087,
    "h": 294.8
  },
  "luminance": 0.03937
}

Semantic roles & 50–950 ramp

primary
#48198B
secondary
#8BBE42
accent
#EC3BA3
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #48198B

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

Preview Lab → · Contrast checker → · Palette generator →

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