#7F48B7#7F48B7

#7F48B7 is a mid, vivid violet. Relative luminance 0.126; OKLCH L 52.0% C 0.171 H 303.9°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#7F48B7
RGBrgb(127, 72, 183)
HSLhsl(270, 44%, 50%)
HSVhsv(270, 61%, 72%)
CMYKcmyk(30.6%, 60.7%, 0%, 28.2%)
CIE-LABlab(42.10, 45.04, -50.09)
CIE-LCHlch(42.10, 67.36, 311.96°)
OKLaboklab(52.02% 0.0952 -0.1418)
OKLCHoklch(52.02% 0.171 303.9)
XYZxyz(19.6151, 12.5657, 46.1826)
Luminance0.1257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F48B7 #80B748
analogous
#4849B7 #7F48B7 #B648B7
triadic
#7F48B7 #B77F48 #48B77F
tetradic
#7F48B7 #B74849 #80B748 #48B7B6
square
#7F48B7 #B74849 #80B748 #48B7B6
split-complementary
#7F48B7 #B7B648 #49B748
monochromatic
#42255F #61378B #7F48B7 #9E74C8 #BCA0DA

Accessibility & contrast

On white

5.98
#7F48B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#7F48B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F48B7
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F48B7#FFFFFF#000000##FFFFFF
##7F48B71.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C62BB
Deuteranopia (green-blind)
#2D63B4
Tritanopia (blue-blind)
#755F79
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7f48b7;
/* rgb */ color: rgb(127, 72, 183);
/* oklch */ color: oklch(52.0% 0.171 303.9);
Tailwind
colors: {
  custom: {
    50: '#a87ecd',
    500: '#7f48b7',
    950: '#000000',
  },
}
SCSS
$custom: #7f48b7;
$custom-light: #a87ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#7f48b7",
  "rgb": {
    "r": 127,
    "g": 72,
    "b": 183
  },
  "hsl": {
    "h": 269.73,
    "s": 43.529,
    "l": 50
  },
  "oklch": {
    "l": 0.52017,
    "c": 0.17073,
    "h": 303.9
  },
  "luminance": 0.12566
}

Semantic roles & 50–950 ramp

primary
#7F48B7
secondary
#AEC695
accent
#D35594
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7F48B7

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

Preview Lab → · Contrast checker → · Palette generator →

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