#7A2186#7A2186

#7A2186 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.4% C 0.172 H 322.7°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#7A2186
RGBrgb(122, 33, 134)
HSLhsl(293, 60%, 33%)
HSVhsv(293, 75%, 53%)
CMYKcmyk(9%, 75.4%, 0%, 47.5%)
CIE-LABlab(31.69, 51.22, -37.26)
CIE-LCHlch(31.69, 63.34, 323.97°)
OKLaboklab(43.36% 0.1364 -0.1041)
OKLCHoklch(43.36% 0.172 322.7)
XYZxyz(12.8725, 6.9473, 23.2126)
Luminance0.0695 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2186 #2D8621
analogous
#472186 #7A2186 #862160
triadic
#7A2186 #867A21 #21867A
tetradic
#7A2186 #864721 #2D8621 #216086
square
#7A2186 #864721 #2D8621 #216086
split-complementary
#7A2186 #608621 #218647
monochromatic
#210924 #4D1555 #7A2186 #A72DB7 #C44ED3

Accessibility & contrast

On white

8.79
#7A2186 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#7A2186 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2186
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2186#FFFFFF#000000##FFFFFF
##7A21861.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004489
Deuteranopia (green-blind)
#314E84
Tritanopia (blue-blind)
#7C3452
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7a2186;
/* rgb */ color: rgb(122, 33, 134);
/* oklch */ color: oklch(43.4% 0.172 322.7);
Tailwind
colors: {
  custom: {
    50: '#a466aa',
    500: '#7a2186',
    950: '#000000',
  },
}
SCSS
$custom: #7a2186;
$custom-light: #a466aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2186",
  "rgb": {
    "r": 122,
    "g": 33,
    "b": 134
  },
  "hsl": {
    "h": 292.871,
    "s": 60.479,
    "l": 32.745
  },
  "oklch": {
    "l": 0.43355,
    "c": 0.1716,
    "h": 322.7
  },
  "luminance": 0.06947
}

Semantic roles & 50–950 ramp

primary
#7A2186
secondary
#59B74C
accent
#E44457
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7A2186

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

Preview Lab → · Contrast checker → · Palette generator →

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