#7A1F96#7A1F96

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

Color values

HEX#7A1F96
RGBrgb(122, 31, 150)
HSLhsl(286, 66%, 35%)
HSVhsv(286, 79%, 59%)
CMYKcmyk(18.7%, 79.3%, 0%, 41.2%)
CIE-LABlab(32.52, 55.03, -45.78)
CIE-LCHlch(32.52, 71.58, 320.24°)
OKLaboklab(44.29% 0.1364 -0.129)
OKLCHoklch(44.29% 0.188 316.6)
XYZxyz(14.0202, 7.3201, 29.5227)
Luminance0.0732 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1F96 #3B961F
analogous
#3E1F96 #7A1F96 #961F77
triadic
#7A1F96 #967A1F #1F967A
tetradic
#7A1F96 #963E1F #3B961F #1F7796
square
#7A1F96 #963E1F #3B961F #1F7796
split-complementary
#7A1F96 #77961F #1F963E
monochromatic
#270A31 #511563 #7A1F96 #A329C9 #BC54DC

Accessibility & contrast

On white

8.52
#7A1F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A1F96
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1F96#FFFFFF#000000##FFFFFF
##7A1F961.008.522.468.52
#FFFFFF8.521.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004799
Deuteranopia (green-blind)
#1F4F93
Tritanopia (blue-blind)
#783A5A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7a1f96;
/* rgb */ color: rgb(122, 31, 150);
/* oklch */ color: oklch(44.3% 0.188 316.6);
Tailwind
colors: {
  custom: {
    50: '#a466b6',
    500: '#7a1f96',
    950: '#000000',
  },
}
SCSS
$custom: #7a1f96;
$custom-light: #a466b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1f96",
  "rgb": {
    "r": 122,
    "g": 31,
    "b": 150
  },
  "hsl": {
    "h": 285.882,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.44293,
    "c": 0.18779,
    "h": 316.6
  },
  "luminance": 0.0732
}

Semantic roles & 50–950 ramp

primary
#7A1F96
secondary
#6CBF52
accent
#E93F67
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7A1F96

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

Preview Lab → · Contrast checker → · Palette generator →

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