#7A1273#7A1273

#7A1273 is a dark, vivid purple. Relative luminance 0.058; OKLCH L 41.0% C 0.171 H 331.4°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#7A1273
RGBrgb(122, 18, 115)
HSLhsl(304, 74%, 27%)
HSVhsv(304, 85%, 48%)
CMYKcmyk(0%, 85.2%, 5.7%, 52.2%)
CIE-LABlab(28.93, 52.48, -29.69)
CIE-LCHlch(28.93, 60.30, 330.51°)
OKLaboklab(41.01% 0.15 -0.0819)
OKLCHoklch(41.01% 0.171 331.4)
XYZxyz(11.3369, 5.8090, 16.7405)
Luminance0.0581 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1273 #127A19
analogous
#4D127A #7A1273 #7A123F
triadic
#7A1273 #737A12 #12737A
tetradic
#7A1273 #7A4D12 #127A19 #123F7A
square
#7A1273 #7A4D12 #127A19 #123F7A
split-complementary
#7A1273 #3F7A12 #127A4D
monochromatic
#1B0419 #450A41 #7A1273 #AF1AA5 #DF27D3

Accessibility & contrast

On white

9.72
#7A1273 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#7A1273 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1273
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1273#FFFFFF#000000##FFFFFF
##7A12731.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#033B75
Deuteranopia (green-blind)
#374971
Tritanopia (blue-blind)
#7F2244
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7a1273;
/* rgb */ color: rgb(122, 18, 115);
/* oklch */ color: oklch(41.0% 0.171 331.4);
Tailwind
colors: {
  custom: {
    50: '#a4609c',
    500: '#7a1273',
    950: '#000000',
  },
}
SCSS
$custom: #7a1273;
$custom-light: #a4609c;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1273",
  "rgb": {
    "r": 122,
    "g": 18,
    "b": 115
  },
  "hsl": {
    "h": 304.038,
    "s": 74.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.41013,
    "c": 0.17094,
    "h": 331.4
  },
  "luminance": 0.05808
}

Semantic roles & 50–950 ramp

primary
#7A1273
secondary
#38B040
accent
#F14337
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10050E
muted
#7F7A7E

Preview Lab

Preview with #7A1273

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

Preview Lab → · Contrast checker → · Palette generator →

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