#7A1B9F#7A1B9F

#7A1B9F is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.7% C 0.199 H 313.7°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#7A1B9F
RGBrgb(122, 27, 159)
HSLhsl(283, 71%, 36%)
HSVhsv(283, 83%, 62%)
CMYKcmyk(23.3%, 83%, 0%, 37.6%)
CIE-LABlab(32.76, 58.08, -50.90)
CIE-LCHlch(32.76, 77.23, 318.77°)
OKLaboklab(44.66% 0.1378 -0.144)
OKLCHoklch(44.66% 0.199 313.7)
XYZxyz(14.6749, 7.4251, 33.4543)
Luminance0.0742 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1B9F #409F1B
analogous
#381B9F #7A1B9F #9F1B82
triadic
#7A1B9F #9F7A1B #1B9F7A
tetradic
#7A1B9F #9F381B #409F1B #1B829F
square
#7A1B9F #9F381B #409F1B #1B829F
split-complementary
#7A1B9F #829F1B #1B9F38
monochromatic
#2A0936 #52126B #7A1B9F #A224D3 #BA53E2

Accessibility & contrast

On white

8.45
#7A1B9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#7A1B9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1B9F
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1B9F#FFFFFF#000000##FFFFFF
##7A1B9F1.008.452.498.45
#FFFFFF8.451.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A2
Deuteranopia (green-blind)
#064F9C
Tritanopia (blue-blind)
#763D5F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7a1b9f;
/* rgb */ color: rgb(122, 27, 159);
/* oklch */ color: oklch(44.7% 0.199 313.7);
Tailwind
colors: {
  custom: {
    50: '#a565bc',
    500: '#7a1b9f',
    950: '#000000',
  },
}
SCSS
$custom: #7a1b9f;
$custom-light: #a565bc;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1b9f",
  "rgb": {
    "r": 122,
    "g": 27,
    "b": 159
  },
  "hsl": {
    "h": 283.182,
    "s": 70.968,
    "l": 36.471
  },
  "oklch": {
    "l": 0.44664,
    "c": 0.19933,
    "h": 313.7
  },
  "luminance": 0.07425
}

Semantic roles & 50–950 ramp

primary
#7A1B9F
secondary
#72C551
accent
#EE3A6C
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7A1B9F

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

Preview Lab → · Contrast checker → · Palette generator →

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