#7A48E7#7A48E7

#7A48E7 is a mid, highly saturated violet. Relative luminance 0.145; OKLCH L 55.1% C 0.225 H 291.7°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#7A48E7
RGBrgb(122, 72, 231)
HSLhsl(259, 77%, 59%)
HSVhsv(259, 69%, 91%)
CMYKcmyk(47.2%, 68.8%, 0%, 9.4%)
CIE-LABlab(45.00, 56.42, -73.08)
CIE-LCHlch(45.00, 92.33, 307.67°)
OKLaboklab(55.07% 0.0832 -0.2095)
OKLCHoklch(55.07% 0.225 291.7)
XYZxyz(24.7632, 14.5409, 77.0877)
Luminance0.1454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A48E7 #B5E748
analogous
#4866E7 #7A48E7 #CA48E7
triadic
#7A48E7 #E77A48 #48E77A
tetradic
#7A48E7 #E74866 #B5E748 #48E7CA
square
#7A48E7 #E74866 #B5E748 #48E7CA
split-complementary
#7A48E7 #E7CA48 #66E748
monochromatic
#4115A0 #561CD6 #7A48E7 #A17EEE #C9B4F5

Accessibility & contrast

On white

5.37
#7A48E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#7A48E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A48E7
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A48E7#FFFFFF#000000##FFFFFF
##7A48E71.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DEC
Deuteranopia (green-blind)
#0067E4
Tritanopia (blue-blind)
#587092
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7a48e7;
/* rgb */ color: rgb(122, 72, 231);
/* oklch */ color: oklch(55.1% 0.225 291.7);
Tailwind
colors: {
  custom: {
    50: '#a97ff0',
    500: '#7a48e7',
    950: '#000000',
  },
}
SCSS
$custom: #7a48e7;
$custom-light: #a97ff0;
$custom-dark: #000000;
JSON
{
  "hex": "#7a48e7",
  "rgb": {
    "r": 122,
    "g": 72,
    "b": 231
  },
  "hsl": {
    "h": 258.868,
    "s": 76.812,
    "l": 59.412
  },
  "oklch": {
    "l": 0.55065,
    "c": 0.22542,
    "h": 291.7
  },
  "luminance": 0.14542
}

Semantic roles & 50–950 ramp

primary
#7A48E7
secondary
#D1E4A6
accent
#F334B7
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#110A17
muted
#807C85

Preview Lab

Preview with #7A48E7

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

Preview Lab → · Contrast checker → · Palette generator →

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