#7A1D98#7A1D98

#7A1D98 is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.3% C 0.191 H 316.0°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#7A1D98
RGBrgb(122, 29, 152)
HSLhsl(285, 68%, 35%)
HSVhsv(285, 81%, 60%)
CMYKcmyk(19.7%, 80.9%, 0%, 40.4%)
CIE-LABlab(32.44, 56.07, -47.14)
CIE-LCHlch(32.44, 73.25, 319.95°)
OKLaboklab(44.28% 0.1377 -0.133)
OKLCHoklch(44.28% 0.191 316)
XYZxyz(14.1320, 7.2839, 30.3612)
Luminance0.0728 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1D98 #3B981D
analogous
#3C1D98 #7A1D98 #981D78
triadic
#7A1D98 #987A1D #1D987A
tetradic
#7A1D98 #983C1D #3B981D #1D7898
square
#7A1D98 #983C1D #3B981D #1D7898
split-complementary
#7A1D98 #78981D #1D983C
monochromatic
#270931 #511365 #7A1D98 #A327CB #BC52DE

Accessibility & contrast

On white

8.55
#7A1D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#7A1D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1D98
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1D98#FFFFFF#000000##FFFFFF
##7A1D981.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479B
Deuteranopia (green-blind)
#1A4F95
Tritanopia (blue-blind)
#783A5B
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7a1d98;
/* rgb */ color: rgb(122, 29, 152);
/* oklch */ color: oklch(44.3% 0.191 316.0);
Tailwind
colors: {
  custom: {
    50: '#a565b7',
    500: '#7a1d98',
    950: '#000000',
  },
}
SCSS
$custom: #7a1d98;
$custom-light: #a565b7;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1d98",
  "rgb": {
    "r": 122,
    "g": 29,
    "b": 152
  },
  "hsl": {
    "h": 285.366,
    "s": 67.956,
    "l": 35.49
  },
  "oklch": {
    "l": 0.44282,
    "c": 0.19146,
    "h": 316
  },
  "luminance": 0.07283
}

Semantic roles & 50–950 ramp

primary
#7A1D98
secondary
#6CC150
accent
#EB3D67
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7A1D98

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

Preview Lab → · Contrast checker → · Palette generator →

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