#7A2F86#7A2F86

#7A2F86 is a dark, vivid purple. Relative luminance 0.079; OKLCH L 44.8% C 0.153 H 321.9°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#7A2F86
RGBrgb(122, 47, 134)
HSLhsl(292, 48%, 35%)
HSVhsv(292, 65%, 53%)
CMYKcmyk(9%, 64.9%, 0%, 47.5%)
CIE-LABlab(33.76, 45.40, -33.96)
CIE-LCHlch(33.76, 56.70, 323.21°)
OKLaboklab(44.84% 0.1206 -0.0945)
OKLCHoklch(44.84% 0.153 321.9)
XYZxyz(13.3452, 7.8925, 23.3701)
Luminance0.0789 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2F86 #3B862F
analogous
#4E2F86 #7A2F86 #862F66
triadic
#7A2F86 #867A2F #2F867A
tetradic
#7A2F86 #864E2F #3B862F #2F6686
square
#7A2F86 #864E2F #3B862F #2F6686
split-complementary
#7A2F86 #66862F #2F864E
monochromatic
#270F2B #511F59 #7A2F86 #A33FB3 #BC66C9

Accessibility & contrast

On white

8.14
#7A2F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#7A2F86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2F86
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2F86#FFFFFF#000000##FFFFFF
##7A2F861.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4A89
Deuteranopia (green-blind)
#395284
Tritanopia (blue-blind)
#7B3D56
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7a2f86;
/* rgb */ color: rgb(122, 47, 134);
/* oklch */ color: oklch(44.8% 0.153 321.9);
Tailwind
colors: {
  custom: {
    50: '#a36daa',
    500: '#7a2f86',
    950: '#000000',
  },
}
SCSS
$custom: #7a2f86;
$custom-light: #a36daa;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2f86",
  "rgb": {
    "r": 122,
    "g": 47,
    "b": 134
  },
  "hsl": {
    "h": 291.724,
    "s": 48.066,
    "l": 35.49
  },
  "oklch": {
    "l": 0.44843,
    "c": 0.15327,
    "h": 321.9
  },
  "luminance": 0.07892
}

Semantic roles & 50–950 ramp

primary
#7A2F86
secondary
#6CB060
accent
#D85063
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #7A2F86

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

Preview Lab → · Contrast checker → · Palette generator →

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