#48126C#48126C

#48126C is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.145 H 307.0°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#48126C
RGBrgb(72, 18, 108)
HSLhsl(276, 71%, 25%)
HSVhsv(276, 83%, 42%)
CMYKcmyk(33.3%, 83.3%, 0%, 57.6%)
CIE-LABlab(19.61, 41.01, -40.61)
CIE-LCHlch(19.61, 57.72, 315.28°)
OKLaboklab(32.56% 0.0871 -0.1155)
OKLCHoklch(32.56% 0.145 307)
XYZxyz(5.5950, 2.8931, 14.4481)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#48126C #366C12
analogous
#1B126C #48126C #6C1263
triadic
#48126C #6C4812 #126C48
tetradic
#48126C #6C1B12 #366C12 #12636C
square
#48126C #6C1B12 #366C12 #12636C
split-complementary
#48126C #636C12 #126C1B
monochromatic
#11041A #250938 #48126C #6B1BA0 #8E23D5

Accessibility & contrast

On white

13.30
#48126C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#48126C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #48126C
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##48126C#FFFFFF#000000##FFFFFF
##48126C1.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6E
Deuteranopia (green-blind)
#00306A
Tritanopia (blue-blind)
#422A3F
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #48126c;
/* rgb */ color: rgb(72, 18, 108);
/* oklch */ color: oklch(32.6% 0.145 307.0);
Tailwind
colors: {
  custom: {
    50: '#7f5797',
    500: '#48126c',
    950: '#000000',
  },
}
SCSS
$custom: #48126c;
$custom-light: #7f5797;
$custom-dark: #000000;
JSON
{
  "hex": "#48126c",
  "rgb": {
    "r": 72,
    "g": 18,
    "b": 108
  },
  "hsl": {
    "h": 276,
    "s": 71.429,
    "l": 24.706
  },
  "oklch": {
    "l": 0.32564,
    "c": 0.14471,
    "h": 307
  },
  "luminance": 0.02893
}

Semantic roles & 50–950 ramp

primary
#48126C
secondary
#62A336
accent
#EE3A82
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B030D
muted
#7C787E

Preview Lab

Preview with #48126C

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

Preview Lab → · Contrast checker → · Palette generator →

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