#48127F#48127F

#48127F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.3% C 0.164 H 299.5°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#48127F
RGBrgb(72, 18, 127)
HSLhsl(270, 75%, 28%)
HSVhsv(270, 86%, 50%)
CMYKcmyk(43.3%, 85.8%, 0%, 50.2%)
CIE-LABlab(21.37, 45.67, -49.95)
CIE-LCHlch(21.37, 67.69, 312.44°)
OKLaboklab(34.32% 0.081 -0.143)
OKLCHoklch(34.32% 0.164 299.5)
XYZxyz(6.7186, 3.3425, 20.3658)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#48127F #497F12
analogous
#12127F #48127F #7E127F
triadic
#48127F #7F4812 #127F48
tetradic
#48127F #7F1212 #497F12 #127F7E
square
#48127F #7F1212 #497F12 #127F7E
split-complementary
#48127F #7F7E12 #127F12
monochromatic
#0F041B #2A0A49 #48127F #661AB5 #852BE1

Accessibility & contrast

On white

12.59
#48127F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#48127F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #48127F
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##48127F#FFFFFF#000000##FFFFFF
##48127F1.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#00327D
Tritanopia (blue-blind)
#3A324A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #48127f;
/* rgb */ color: rgb(72, 18, 127);
/* oklch */ color: oklch(34.3% 0.164 299.5);
Tailwind
colors: {
  custom: {
    50: '#8159a5',
    500: '#48127f',
    950: '#000000',
  },
}
SCSS
$custom: #48127f;
$custom-light: #8159a5;
$custom-dark: #000000;
JSON
{
  "hex": "#48127f",
  "rgb": {
    "r": 72,
    "g": 18,
    "b": 127
  },
  "hsl": {
    "h": 269.725,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.34323,
    "c": 0.16432,
    "h": 299.5
  },
  "luminance": 0.03343
}

Semantic roles & 50–950 ramp

primary
#48127F
secondary
#77B538
accent
#F23695
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #48127F

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

Preview Lab → · Contrast checker → · Palette generator →

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