#48126A#48126A

#48126A is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.143 H 307.9°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#48126A
RGBrgb(72, 18, 106)
HSLhsl(277, 71%, 24%)
HSVhsv(277, 83%, 42%)
CMYKcmyk(32.1%, 83%, 0%, 58.4%)
CIE-LABlab(19.44, 40.53, -39.59)
CIE-LCHlch(19.44, 56.66, 315.67°)
OKLaboklab(32.39% 0.0877 -0.1125)
OKLCHoklch(32.39% 0.143 307.9)
XYZxyz(5.4898, 2.8510, 13.8940)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#48126A #346A12
analogous
#1C126A #48126A #6A1260
triadic
#48126A #6A4812 #126A48
tetradic
#48126A #6A1C12 #346A12 #12606A
square
#48126A #6A1C12 #346A12 #12606A
split-complementary
#48126A #606A12 #126A1C
monochromatic
#12041A #240936 #48126A #6C1B9E #8F24D3

Accessibility & contrast

On white

13.37
#48126A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#48126A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #48126A
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##48126A#FFFFFF#000000##FFFFFF
##48126A1.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6C
Deuteranopia (green-blind)
#003068
Tritanopia (blue-blind)
#42293E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #48126a;
/* rgb */ color: rgb(72, 18, 106);
/* oklch */ color: oklch(32.4% 0.143 307.9);
Tailwind
colors: {
  custom: {
    50: '#7f5795',
    500: '#48126a',
    950: '#000000',
  },
}
SCSS
$custom: #48126a;
$custom-light: #7f5795;
$custom-dark: #000000;
JSON
{
  "hex": "#48126a",
  "rgb": {
    "r": 72,
    "g": 18,
    "b": 106
  },
  "hsl": {
    "h": 276.818,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.32388,
    "c": 0.14266,
    "h": 307.9
  },
  "luminance": 0.02851
}

Semantic roles & 50–950 ramp

primary
#48126A
secondary
#60A236
accent
#EE3A7F
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0A030D
muted
#7C787E

Preview Lab

Preview with #48126A

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

Preview Lab → · Contrast checker → · Palette generator →

#48126A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva