#7A1D9B#7A1D9B

#7A1D9B is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.5% C 0.194 H 315.0°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#7A1D9B
RGBrgb(122, 29, 155)
HSLhsl(284, 68%, 36%)
HSVhsv(284, 81%, 61%)
CMYKcmyk(21.3%, 81.3%, 0%, 39.2%)
CIE-LABlab(32.66, 56.67, -48.61)
CIE-LCHlch(32.66, 74.66, 319.38°)
OKLaboklab(44.51% 0.1372 -0.1373)
OKLCHoklch(44.51% 0.194 315)
XYZxyz(14.3808, 7.3834, 31.6716)
Luminance0.0738 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1D9B #3E9B1D
analogous
#3B1D9B #7A1D9B #9B1D7D
triadic
#7A1D9B #9B7A1D #1D9B7A
tetradic
#7A1D9B #9B3B1D #3E9B1D #1D7D9B
square
#7A1D9B #9B3B1D #3E9B1D #1D7D9B
split-complementary
#7A1D9B #7D9B1D #1D9B3B
monochromatic
#290A34 #511367 #7A1D9B #A327CF #BA53DF

Accessibility & contrast

On white

8.48
#7A1D9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#7A1D9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1D9B
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1D9B#FFFFFF#000000##FFFFFF
##7A1D9B1.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489E
Deuteranopia (green-blind)
#154F98
Tritanopia (blue-blind)
#773C5D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7a1d9b;
/* rgb */ color: rgb(122, 29, 155);
/* oklch */ color: oklch(44.5% 0.194 315.0);
Tailwind
colors: {
  custom: {
    50: '#a566b9',
    500: '#7a1d9b',
    950: '#000000',
  },
}
SCSS
$custom: #7a1d9b;
$custom-light: #a566b9;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1d9b",
  "rgb": {
    "r": 122,
    "g": 29,
    "b": 155
  },
  "hsl": {
    "h": 284.286,
    "s": 68.478,
    "l": 36.078
  },
  "oklch": {
    "l": 0.44506,
    "c": 0.19409,
    "h": 315
  },
  "luminance": 0.07383
}

Semantic roles & 50–950 ramp

primary
#7A1D9B
secondary
#6FC252
accent
#EB3C6A
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7A1D9B

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

Preview Lab → · Contrast checker → · Palette generator →

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