#7A48C2#7A48C2

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

Color values

HEX#7A48C2
RGBrgb(122, 72, 194)
HSLhsl(265, 50%, 52%)
HSVhsv(265, 63%, 76%)
CMYKcmyk(37.1%, 62.9%, 0%, 23.9%)
CIE-LABlab(42.26, 46.68, -56.30)
CIE-LCHlch(42.26, 73.13, 309.66°)
OKLaboklab(52.23% 0.0879 -0.1602)
OKLCHoklch(52.23% 0.183 298.8)
XYZxyz(20.0786, 12.6671, 52.4156)
Luminance0.1267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A48C2 #90C248
analogous
#4853C2 #7A48C2 #B748C2
triadic
#7A48C2 #C27A48 #48C27A
tetradic
#7A48C2 #C24853 #90C248 #48C2B7
square
#7A48C2 #C24853 #90C248 #48C2B7
split-complementary
#7A48C2 #C2B748 #53C248
monochromatic
#41246C #5D339A #7A48C2 #9B76D1 #BDA4E1

Accessibility & contrast

On white

5.94
#7A48C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#7A48C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A48C2
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A48C2#FFFFFF#000000##FFFFFF
##7A48C21.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C6
Deuteranopia (green-blind)
#0E63BF
Tritanopia (blue-blind)
#6A637E
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7a48c2;
/* rgb */ color: rgb(122, 72, 194);
/* oklch */ color: oklch(52.2% 0.183 298.8);
Tailwind
colors: {
  custom: {
    50: '#a57ed5',
    500: '#7a48c2',
    950: '#000000',
  },
}
SCSS
$custom: #7a48c2;
$custom-light: #a57ed5;
$custom-dark: #000000;
JSON
{
  "hex": "#7a48c2",
  "rgb": {
    "r": 122,
    "g": 72,
    "b": 194
  },
  "hsl": {
    "h": 264.59,
    "s": 50,
    "l": 52.157
  },
  "oklch": {
    "l": 0.52234,
    "c": 0.1827,
    "h": 298.8
  },
  "luminance": 0.12667
}

Semantic roles & 50–950 ramp

primary
#7A48C2
secondary
#B8CE98
accent
#DA4EA0
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7A48C2

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

Preview Lab → · Contrast checker → · Palette generator →

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