#7A48CA#7A48CA

#7A48CA is a mid, vivid violet. Relative luminance 0.130; OKLCH L 52.8% C 0.192 H 297.0°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#7A48CA
RGBrgb(122, 72, 202)
HSLhsl(263, 55%, 54%)
HSVhsv(263, 64%, 79%)
CMYKcmyk(39.6%, 64.4%, 0%, 20.8%)
CIE-LABlab(42.82, 48.75, -60.04)
CIE-LCHlch(42.82, 77.34, 309.08°)
OKLaboklab(52.82% 0.0872 -0.1711)
OKLCHoklch(52.82% 0.192 297)
XYZxyz(21.0013, 13.0362, 57.2754)
Luminance0.1304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A48CA #98CA48
analogous
#4857CA #7A48CA #BB48CA
triadic
#7A48CA #CA7A48 #48CA7A
tetradic
#7A48CA #CA4857 #98CA48 #48CABB
square
#7A48CA #CA4857 #98CA48 #48CABB
split-complementary
#7A48CA #CABB48 #57CA48
monochromatic
#422276 #5D30A5 #7A48CA #9C77D8 #BFA7E5

Accessibility & contrast

On white

5.82
#7A48CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#7A48CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A48CA
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A48CA#FFFFFF#000000##FFFFFF
##7A48CA1.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CE
Deuteranopia (green-blind)
#0063C7
Tritanopia (blue-blind)
#666683
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7a48ca;
/* rgb */ color: rgb(122, 72, 202);
/* oklch */ color: oklch(52.8% 0.192 297.0);
Tailwind
colors: {
  custom: {
    50: '#a67edb',
    500: '#7a48ca',
    950: '#000000',
  },
}
SCSS
$custom: #7a48ca;
$custom-light: #a67edb;
$custom-dark: #000000;
JSON
{
  "hex": "#7a48ca",
  "rgb": {
    "r": 122,
    "g": 72,
    "b": 202
  },
  "hsl": {
    "h": 263.077,
    "s": 55.085,
    "l": 53.725
  },
  "oklch": {
    "l": 0.52817,
    "c": 0.19209,
    "h": 297
  },
  "luminance": 0.13037
}

Semantic roles & 50–950 ramp

primary
#7A48CA
secondary
#BDD39B
accent
#DE49A5
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7A48CA

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

Preview Lab → · Contrast checker → · Palette generator →

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