#7A48BB#7A48BB

#7A48BB is a mid, vivid violet. Relative luminance 0.124; OKLCH L 51.7% C 0.174 H 300.4°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#7A48BB
RGBrgb(122, 72, 187)
HSLhsl(266, 46%, 51%)
HSVhsv(266, 61%, 73%)
CMYKcmyk(34.8%, 61.5%, 0%, 26.7%)
CIE-LABlab(41.78, 44.88, -52.98)
CIE-LCHlch(41.78, 69.43, 310.26°)
OKLaboklab(51.74% 0.0883 -0.1504)
OKLCHoklch(51.74% 0.174 300.4)
XYZxyz(19.3109, 12.3600, 48.3724)
Luminance0.1236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A48BB #89BB48
analogous
#484FBB #7A48BB #B348BB
triadic
#7A48BB #BB7A48 #48BB7A
tetradic
#7A48BB #BB484F #89BB48 #48BBB3
square
#7A48BB #BB484F #89BB48 #48BBB3
split-complementary
#7A48BB #BBB348 #4FBB48
monochromatic
#402564 #5D3690 #7A48BB #9A75CC #BBA1DC

Accessibility & contrast

On white

6.05
#7A48BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#7A48BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A48BB
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A48BB#FFFFFF#000000##FFFFFF
##7A48BB1.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BF
Deuteranopia (green-blind)
#1F62B8
Tritanopia (blue-blind)
#6C617B
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7a48bb;
/* rgb */ color: rgb(122, 72, 187);
/* oklch */ color: oklch(51.7% 0.174 300.4);
Tailwind
colors: {
  custom: {
    50: '#a57dd0',
    500: '#7a48bb',
    950: '#000000',
  },
}
SCSS
$custom: #7a48bb;
$custom-light: #a57dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#7a48bb",
  "rgb": {
    "r": 122,
    "g": 72,
    "b": 187
  },
  "hsl": {
    "h": 266.087,
    "s": 45.817,
    "l": 50.784
  },
  "oklch": {
    "l": 0.51738,
    "c": 0.17441,
    "h": 300.4
  },
  "luminance": 0.1236
}

Semantic roles & 50–950 ramp

primary
#7A48BB
secondary
#B3C996
accent
#D5529C
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7A48BB

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

Preview Lab → · Contrast checker → · Palette generator →

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