#7A278F#7A278F

#7A278F is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.5% C 0.173 H 318.7°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#7A278F
RGBrgb(122, 39, 143)
HSLhsl(288, 57%, 36%)
HSVhsv(288, 73%, 56%)
CMYKcmyk(14.7%, 72.7%, 0%, 43.9%)
CIE-LABlab(33.08, 50.68, -40.60)
CIE-LCHlch(33.08, 64.94, 321.30°)
OKLaboklab(44.53% 0.1296 -0.1139)
OKLCHoklch(44.53% 0.173 318.7)
XYZxyz(13.7088, 7.5724, 26.7208)
Luminance0.0757 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A278F #3C8F27
analogous
#46278F #7A278F #8F2770
triadic
#7A278F #8F7A27 #278F7A
tetradic
#7A278F #8F4627 #3C8F27 #27708F
square
#7A278F #8F4627 #3C8F27 #27708F
split-complementary
#7A278F #708F27 #278F46
monochromatic
#280D2F #511A5F #7A278F #A334BF #BB5DD3

Accessibility & contrast

On white

8.35
#7A278F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#7A278F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A278F
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A278F#FFFFFF#000000##FFFFFF
##7A278F1.008.352.518.35
#FFFFFF8.351.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004892
Deuteranopia (green-blind)
#2D508D
Tritanopia (blue-blind)
#7A3B58
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7a278f;
/* rgb */ color: rgb(122, 39, 143);
/* oklch */ color: oklch(44.5% 0.173 318.7);
Tailwind
colors: {
  custom: {
    50: '#a469b0',
    500: '#7a278f',
    950: '#000000',
  },
}
SCSS
$custom: #7a278f;
$custom-light: #a469b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7a278f",
  "rgb": {
    "r": 122,
    "g": 39,
    "b": 143
  },
  "hsl": {
    "h": 287.885,
    "s": 57.143,
    "l": 35.686
  },
  "oklch": {
    "l": 0.44532,
    "c": 0.17258,
    "h": 318.7
  },
  "luminance": 0.07572
}

Semantic roles & 50–950 ramp

primary
#7A278F
secondary
#6DB85A
accent
#E04766
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7A278F

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

Preview Lab → · Contrast checker → · Palette generator →

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