#7A1B94#7A1B94

#7A1B94 is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.8% C 0.190 H 317.5°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#7A1B94
RGBrgb(122, 27, 148)
HSLhsl(287, 69%, 34%)
HSVhsv(287, 82%, 58%)
CMYKcmyk(17.6%, 81.8%, 0%, 42%)
CIE-LABlab(31.94, 55.90, -45.50)
CIE-LCHlch(31.94, 72.08, 320.86°)
OKLaboklab(43.84% 0.14 -0.1282)
OKLCHoklch(43.84% 0.19 317.5)
XYZxyz(13.7625, 7.0602, 28.6490)
Luminance0.0706 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1B94 #35941B
analogous
#3D1B94 #7A1B94 #941B72
triadic
#7A1B94 #947A1B #1B947A
tetradic
#7A1B94 #943D1B #35941B #1B7294
square
#7A1B94 #943D1B #35941B #1B7294
split-complementary
#7A1B94 #72941B #1B943D
monochromatic
#25082C #4F1260 #7A1B94 #A524C8 #BF4BDE

Accessibility & contrast

On white

8.71
#7A1B94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#7A1B94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1B94
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1B94#FFFFFF#000000##FFFFFF
##7A1B941.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004597
Deuteranopia (green-blind)
#1F4E91
Tritanopia (blue-blind)
#793758
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7a1b94;
/* rgb */ color: rgb(122, 27, 148);
/* oklch */ color: oklch(43.8% 0.190 317.5);
Tailwind
colors: {
  custom: {
    50: '#a565b4',
    500: '#7a1b94',
    950: '#000000',
  },
}
SCSS
$custom: #7a1b94;
$custom-light: #a565b4;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1b94",
  "rgb": {
    "r": 122,
    "g": 27,
    "b": 148
  },
  "hsl": {
    "h": 287.107,
    "s": 69.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.43839,
    "c": 0.18982,
    "h": 317.5
  },
  "luminance": 0.0706
}

Semantic roles & 50–950 ramp

primary
#7A1B94
secondary
#64C04B
accent
#EC3C62
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7A1B94

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

Preview Lab → · Contrast checker → · Palette generator →

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