#48318F#48318F

#48318F is a dark, vivid violet. Relative luminance 0.056; OKLCH L 39.6% C 0.148 H 289.1°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#48318F
RGBrgb(72, 49, 143)
HSLhsl(255, 49%, 38%)
HSVhsv(255, 66%, 56%)
CMYKcmyk(49.7%, 65.7%, 0%, 43.9%)
CIE-LABlab(28.27, 34.77, -48.70)
CIE-LCHlch(28.27, 59.83, 305.53°)
OKLaboklab(39.65% 0.0484 -0.1395)
OKLCHoklch(39.65% 0.148 289.1)
XYZxyz(8.7273, 5.5572, 26.5941)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#48318F #788F31
analogous
#31498F #48318F #77318F
triadic
#48318F #8F4831 #318F48
tetradic
#48318F #8F3149 #788F31 #318F77
square
#48318F #8F3149 #788F31 #318F77
split-complementary
#48318F #8F7731 #498F31
monochromatic
#1A1234 #312161 #48318F #5F41BD #856DCD

Accessibility & contrast

On white

9.95
#48318F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#48318F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #48318F
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##48318F#FFFFFF#000000##FFFFFF
##48318F1.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004592
Deuteranopia (green-blind)
#00408D
Tritanopia (blue-blind)
#30485B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #48318f;
/* rgb */ color: rgb(72, 49, 143);
/* oklch */ color: oklch(39.6% 0.148 289.1);
Tailwind
colors: {
  custom: {
    50: '#816ab1',
    500: '#48318f',
    950: '#000000',
  },
}
SCSS
$custom: #48318f;
$custom-light: #816ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#48318f",
  "rgb": {
    "r": 72,
    "g": 49,
    "b": 143
  },
  "hsl": {
    "h": 254.681,
    "s": 48.958,
    "l": 37.647
  },
  "oklch": {
    "l": 0.39649,
    "c": 0.14761,
    "h": 289.1
  },
  "luminance": 0.05558
}

Semantic roles & 50–950 ramp

primary
#48318F
secondary
#A2B567
accent
#D94FB7
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #48318F

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

Preview Lab → · Contrast checker → · Palette generator →

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