#7A1CB4#7A1CB4

#7A1CB4 is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 46.4% C 0.217 H 307.3°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#7A1CB4
RGBrgb(122, 28, 180)
HSLhsl(277, 73%, 41%)
HSVhsv(277, 84%, 71%)
CMYKcmyk(32.2%, 84.4%, 0%, 29.4%)
CIE-LABlab(34.53, 62.14, -60.62)
CIE-LCHlch(34.53, 86.81, 315.71°)
OKLaboklab(46.42% 0.1316 -0.1726)
OKLCHoklch(46.42% 0.217 307.3)
XYZxyz(16.6777, 8.2636, 43.8876)
Luminance0.0826 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1CB4 #56B41C
analogous
#2E1CB4 #7A1CB4 #B41CA2
triadic
#7A1CB4 #B47A1C #1CB47A
tetradic
#7A1CB4 #B42E1C #56B41C #1CA2B4
square
#7A1CB4 #B42E1C #56B41C #1CA2B4
split-complementary
#7A1CB4 #A2B41C #1CB42E
monochromatic
#320C4A #56147F #7A1CB4 #9B2FDF #B564E7

Accessibility & contrast

On white

7.92
#7A1CB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#7A1CB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1CB4
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1CB4#FFFFFF#000000##FFFFFF
##7A1CB41.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB8
Deuteranopia (green-blind)
#0052B1
Tritanopia (blue-blind)
#70476B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7a1cb4;
/* rgb */ color: rgb(122, 28, 180);
/* oklch */ color: oklch(46.4% 0.217 307.3);
Tailwind
colors: {
  custom: {
    50: '#a667cb',
    500: '#7a1cb4',
    950: '#000000',
  },
}
SCSS
$custom: #7a1cb4;
$custom-light: #a667cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1cb4",
  "rgb": {
    "r": 122,
    "g": 28,
    "b": 180
  },
  "hsl": {
    "h": 277.105,
    "s": 73.077,
    "l": 40.784
  },
  "oklch": {
    "l": 0.46416,
    "c": 0.21703,
    "h": 307.3
  },
  "luminance": 0.08263
}

Semantic roles & 50–950 ramp

primary
#7A1CB4
secondary
#89CC60
accent
#F0387E
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7A1CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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