#7F48BA#7F48BA

#7F48BA is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.2% C 0.174 H 303.1°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#7F48BA
RGBrgb(127, 72, 186)
HSLhsl(269, 45%, 51%)
HSVhsv(269, 61%, 73%)
CMYKcmyk(31.7%, 61.3%, 0%, 27.1%)
CIE-LABlab(42.30, 45.78, -51.54)
CIE-LCHlch(42.30, 68.94, 311.61°)
OKLaboklab(52.22% 0.0951 -0.146)
OKLCHoklch(52.22% 0.174 303.1)
XYZxyz(19.9307, 12.6919, 47.8446)
Luminance0.1269 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F48BA #83BA48
analogous
#484ABA #7F48BA #B848BA
triadic
#7F48BA #BA7F48 #48BA7F
tetradic
#7F48BA #BA484A #83BA48 #48BAB8
square
#7F48BA #BA484A #83BA48 #48BAB8
split-complementary
#7F48BA #BAB848 #4ABA48
monochromatic
#432562 #61368F #7F48BA #9E74CB #BDA1DC

Accessibility & contrast

On white

5.93
#7F48BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#7F48BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F48BA
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F48BA#FFFFFF#000000##FFFFFF
##7F48BA1.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063BE
Deuteranopia (green-blind)
#2964B7
Tritanopia (blue-blind)
#74607A
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7f48ba;
/* rgb */ color: rgb(127, 72, 186);
/* oklch */ color: oklch(52.2% 0.174 303.1);
Tailwind
colors: {
  custom: {
    50: '#a87ecf',
    500: '#7f48ba',
    950: '#000000',
  },
}
SCSS
$custom: #7f48ba;
$custom-light: #a87ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#7f48ba",
  "rgb": {
    "r": 127,
    "g": 72,
    "b": 186
  },
  "hsl": {
    "h": 268.947,
    "s": 45.238,
    "l": 50.588
  },
  "oklch": {
    "l": 0.5222,
    "c": 0.17423,
    "h": 303.1
  },
  "luminance": 0.12692
}

Semantic roles & 50–950 ramp

primary
#7F48BA
secondary
#B0C896
accent
#D55396
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7F48BA

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

Preview Lab → · Contrast checker → · Palette generator →

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