#7F48BC#7F48BC

#7F48BC is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.4% C 0.177 H 302.5°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#7F48BC
RGBrgb(127, 72, 188)
HSLhsl(268, 46%, 51%)
HSVhsv(268, 62%, 74%)
CMYKcmyk(32.4%, 61.7%, 0%, 26.3%)
CIE-LABlab(42.43, 46.27, -52.50)
CIE-LCHlch(42.43, 69.98, 311.39°)
OKLaboklab(52.36% 0.095 -0.1488)
OKLCHoklch(52.36% 0.177 302.5)
XYZxyz(20.1448, 12.7776, 48.9722)
Luminance0.1278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F48BC #85BC48
analogous
#484BBC #7F48BC #B948BC
triadic
#7F48BC #BC7F48 #48BC7F
tetradic
#7F48BC #BC484B #85BC48 #48BCB9
square
#7F48BC #BC484B #85BC48 #48BCB9
split-complementary
#7F48BC #BCB948 #4BBC48
monochromatic
#432565 #613592 #7F48BC #9E75CC #BEA2DD

Accessibility & contrast

On white

5.91
#7F48BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#7F48BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F48BC
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F48BC#FFFFFF#000000##FFFFFF
##7F48BC1.005.913.565.91
#FFFFFF5.911.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C0
Deuteranopia (green-blind)
#2664B9
Tritanopia (blue-blind)
#73607B
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7f48bc;
/* rgb */ color: rgb(127, 72, 188);
/* oklch */ color: oklch(52.4% 0.177 302.5);
Tailwind
colors: {
  custom: {
    50: '#a87ed1',
    500: '#7f48bc',
    950: '#000000',
  },
}
SCSS
$custom: #7f48bc;
$custom-light: #a87ed1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f48bc",
  "rgb": {
    "r": 127,
    "g": 72,
    "b": 188
  },
  "hsl": {
    "h": 268.448,
    "s": 46.4,
    "l": 50.98
  },
  "oklch": {
    "l": 0.52357,
    "c": 0.17655,
    "h": 302.5
  },
  "luminance": 0.12778
}

Semantic roles & 50–950 ramp

primary
#7F48BC
secondary
#B1CA96
accent
#D65297
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7F48BC

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

Preview Lab → · Contrast checker → · Palette generator →

#7F48BC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva