#7A48CB#7A48CB

#7A48CB is a mid, vivid violet. Relative luminance 0.131; OKLCH L 52.9% C 0.193 H 296.8°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#7A48CB
RGBrgb(122, 72, 203)
HSLhsl(263, 56%, 54%)
HSVhsv(263, 65%, 80%)
CMYKcmyk(39.9%, 64.5%, 0%, 20.4%)
CIE-LABlab(42.89, 49.01, -60.50)
CIE-LCHlch(42.89, 77.86, 309.01°)
OKLaboklab(52.89% 0.0871 -0.1725)
OKLCHoklch(52.89% 0.193 296.8)
XYZxyz(21.1201, 13.0837, 57.9010)
Luminance0.1308 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A48CB #99CB48
analogous
#4858CB #7A48CB #BC48CB
triadic
#7A48CB #CB7A48 #48CB7A
tetradic
#7A48CB #CB4858 #99CB48 #48CBBC
square
#7A48CB #CB4858 #99CB48 #48CBBC
split-complementary
#7A48CB #CBBC48 #58CB48
monochromatic
#422277 #5D2FA6 #7A48CB #9D78D9 #BFA7E6

Accessibility & contrast

On white

5.81
#7A48CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#7A48CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A48CB
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A48CB#FFFFFF#000000##FFFFFF
##7A48CB1.005.813.625.81
#FFFFFF5.811.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CF
Deuteranopia (green-blind)
#0064C8
Tritanopia (blue-blind)
#666683
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7a48cb;
/* rgb */ color: rgb(122, 72, 203);
/* oklch */ color: oklch(52.9% 0.193 296.8);
Tailwind
colors: {
  custom: {
    50: '#a67edc',
    500: '#7a48cb',
    950: '#000000',
  },
}
SCSS
$custom: #7a48cb;
$custom-light: #a67edc;
$custom-dark: #000000;
JSON
{
  "hex": "#7a48cb",
  "rgb": {
    "r": 122,
    "g": 72,
    "b": 203
  },
  "hsl": {
    "h": 262.901,
    "s": 55.745,
    "l": 53.922
  },
  "oklch": {
    "l": 0.52891,
    "c": 0.19326,
    "h": 296.8
  },
  "luminance": 0.13084
}

Semantic roles & 50–950 ramp

primary
#7A48CB
secondary
#BED39B
accent
#DF49A6
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7A48CB

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

Preview Lab → · Contrast checker → · Palette generator →

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