#7A1DB1#7A1DB1

#7A1DB1 is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 46.2% C 0.214 H 308.1°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#7A1DB1
RGBrgb(122, 29, 177)
HSLhsl(278, 72%, 40%)
HSVhsv(278, 84%, 69%)
CMYKcmyk(31.1%, 83.6%, 0%, 30.6%)
CIE-LABlab(34.38, 61.21, -59.08)
CIE-LCHlch(34.38, 85.07, 316.02°)
OKLaboklab(46.24% 0.1318 -0.1681)
OKLCHoklch(46.24% 0.214 308.1)
XYZxyz(16.3995, 8.1909, 42.3035)
Luminance0.0819 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1DB1 #54B11D
analogous
#301DB1 #7A1DB1 #B11D9E
triadic
#7A1DB1 #B17A1D #1DB17A
tetradic
#7A1DB1 #B1301D #54B11D #1D9EB1
square
#7A1DB1 #B1301D #54B11D #1D9EB1
split-complementary
#7A1DB1 #9EB11D #1DB130
monochromatic
#320C48 #56147C #7A1DB1 #9C2EDD #B563E5

Accessibility & contrast

On white

7.96
#7A1DB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#7A1DB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1DB1
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1DB1#FFFFFF#000000##FFFFFF
##7A1DB11.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB5
Deuteranopia (green-blind)
#0052AE
Tritanopia (blue-blind)
#71466A
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7a1db1;
/* rgb */ color: rgb(122, 29, 177);
/* oklch */ color: oklch(46.2% 0.214 308.1);
Tailwind
colors: {
  custom: {
    50: '#a667c9',
    500: '#7a1db1',
    950: '#000000',
  },
}
SCSS
$custom: #7a1db1;
$custom-light: #a667c9;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1db1",
  "rgb": {
    "r": 122,
    "g": 29,
    "b": 177
  },
  "hsl": {
    "h": 277.703,
    "s": 71.845,
    "l": 40.392
  },
  "oklch": {
    "l": 0.46237,
    "c": 0.21359,
    "h": 308.1
  },
  "luminance": 0.08191
}

Semantic roles & 50–950 ramp

primary
#7A1DB1
secondary
#87CA60
accent
#EF397D
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7A1DB1

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

Preview Lab → · Contrast checker → · Palette generator →

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