#7F48BF#7F48BF

#7F48BF is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.6% C 0.180 H 301.8°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#7F48BF
RGBrgb(127, 72, 191)
HSLhsl(268, 48%, 52%)
HSVhsv(268, 62%, 75%)
CMYKcmyk(33.5%, 62.3%, 0%, 25.1%)
CIE-LABlab(42.62, 47.02, -53.93)
CIE-LCHlch(42.62, 71.55, 311.08°)
OKLaboklab(52.56% 0.0948 -0.153)
OKLCHoklch(52.56% 0.18 301.8)
XYZxyz(20.4715, 12.9083, 50.6932)
Luminance0.1291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F48BF #88BF48
analogous
#484DBF #7F48BF #BB48BF
triadic
#7F48BF #BF7F48 #48BF7F
tetradic
#7F48BF #BF484D #88BF48 #48BFBB
square
#7F48BF #BF484D #88BF48 #48BFBB
split-complementary
#7F48BF #BFBB48 #4DBF48
monochromatic
#442468 #613496 #7F48BF #9F75CF #BEA3DF

Accessibility & contrast

On white

5.86
#7F48BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#7F48BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F48BF
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F48BF#FFFFFF#000000##FFFFFF
##7F48BF1.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C3
Deuteranopia (green-blind)
#2164BC
Tritanopia (blue-blind)
#72617D
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7f48bf;
/* rgb */ color: rgb(127, 72, 191);
/* oklch */ color: oklch(52.6% 0.180 301.8);
Tailwind
colors: {
  custom: {
    50: '#a87ed3',
    500: '#7f48bf',
    950: '#000000',
  },
}
SCSS
$custom: #7f48bf;
$custom-light: #a87ed3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f48bf",
  "rgb": {
    "r": 127,
    "g": 72,
    "b": 191
  },
  "hsl": {
    "h": 267.731,
    "s": 48.178,
    "l": 51.569
  },
  "oklch": {
    "l": 0.52564,
    "c": 0.18003,
    "h": 301.8
  },
  "luminance": 0.12908
}

Semantic roles & 50–950 ramp

primary
#7F48BF
secondary
#B3CC97
accent
#D85099
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7F48BF

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

Preview Lab → · Contrast checker → · Palette generator →

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