#48188F#48188F

#48188F is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.4% C 0.176 H 293.8°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#48188F
RGBrgb(72, 24, 143)
HSLhsl(264, 71%, 33%)
HSVhsv(264, 83%, 56%)
CMYKcmyk(49.7%, 83.2%, 0%, 43.9%)
CIE-LABlab(23.72, 47.52, -56.14)
CIE-LCHlch(23.72, 73.55, 310.25°)
OKLaboklab(36.43% 0.0711 -0.1611)
OKLCHoklch(36.43% 0.176 293.8)
XYZxyz(7.9557, 4.0139, 26.3369)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#48188F #5F8F18
analogous
#18238F #48188F #83188F
triadic
#48188F #8F4818 #188F48
tetradic
#48188F #8F1823 #5F8F18 #188F83
square
#48188F #8F1823 #5F8F18 #188F83
split-complementary
#48188F #8F8318 #238F18
monochromatic
#130626 #2E0F5B #48188F #6221C3 #8242DF

Accessibility & contrast

On white

11.65
#48188F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#48188F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #48188F
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##48188F#FFFFFF#000000##FFFFFF
##48188F1.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#00368D
Tritanopia (blue-blind)
#323B55
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #48188f;
/* rgb */ color: rgb(72, 24, 143);
/* oklch */ color: oklch(36.4% 0.176 293.8);
Tailwind
colors: {
  custom: {
    50: '#835cb1',
    500: '#48188f',
    950: '#000000',
  },
}
SCSS
$custom: #48188f;
$custom-light: #835cb1;
$custom-dark: #000000;
JSON
{
  "hex": "#48188f",
  "rgb": {
    "r": 72,
    "g": 24,
    "b": 143
  },
  "hsl": {
    "h": 264.202,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.36425,
    "c": 0.17612,
    "h": 293.8
  },
  "luminance": 0.04014
}

Semantic roles & 50–950 ramp

primary
#48188F
secondary
#8EC043
accent
#EE3AA5
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #48188F

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

Preview Lab → · Contrast checker → · Palette generator →

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