#7A1D8E#7A1D8E

#7A1D8E is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.6% C 0.183 H 319.7°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#7A1D8E
RGBrgb(122, 29, 142)
HSLhsl(289, 66%, 34%)
HSVhsv(289, 80%, 56%)
CMYKcmyk(14.1%, 79.6%, 0%, 44.3%)
CIE-LABlab(31.74, 54.12, -42.13)
CIE-LCHlch(31.74, 68.59, 322.10°)
OKLaboklab(43.56% 0.1393 -0.1183)
OKLCHoklch(43.56% 0.183 319.7)
XYZxyz(13.3473, 6.9700, 26.2282)
Luminance0.0697 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1D8E #318E1D
analogous
#421D8E #7A1D8E #8E1D69
triadic
#7A1D8E #8E7A1D #1D8E7A
tetradic
#7A1D8E #8E421D #318E1D #1D698E
square
#7A1D8E #8E421D #318E1D #1D698E
split-complementary
#7A1D8E #698E1D #1D8E42
monochromatic
#230828 #4E135B #7A1D8E #A627C1 #C14BDA

Accessibility & contrast

On white

8.77
#7A1D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#7A1D8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1D8E
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1D8E#FFFFFF#000000##FFFFFF
##7A1D8E1.008.772.398.77
#FFFFFF8.771.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004591
Deuteranopia (green-blind)
#274E8C
Tritanopia (blue-blind)
#7A3555
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7a1d8e;
/* rgb */ color: rgb(122, 29, 142);
/* oklch */ color: oklch(43.6% 0.183 319.7);
Tailwind
colors: {
  custom: {
    50: '#a465b0',
    500: '#7a1d8e',
    950: '#000000',
  },
}
SCSS
$custom: #7a1d8e;
$custom-light: #a465b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1d8e",
  "rgb": {
    "r": 122,
    "g": 29,
    "b": 142
  },
  "hsl": {
    "h": 289.381,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.43561,
    "c": 0.18278,
    "h": 319.7
  },
  "luminance": 0.06969
}

Semantic roles & 50–950 ramp

primary
#7A1D8E
secondary
#5EBD4A
accent
#E93F5D
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7A1D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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