#7A2F99#7A2F99

#7A2F99 is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.1% C 0.172 H 314.3°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#7A2F99
RGBrgb(122, 47, 153)
HSLhsl(282, 53%, 39%)
HSVhsv(282, 69%, 60%)
CMYKcmyk(20.3%, 69.3%, 0%, 40%)
CIE-LABlab(34.95, 49.35, -43.72)
CIE-LCHlch(34.95, 65.93, 318.46°)
OKLaboklab(46.08% 0.1201 -0.1231)
OKLCHoklch(46.08% 0.172 314.3)
XYZxyz(14.7914, 8.4710, 30.9867)
Luminance0.0847 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2F99 #4E992F
analogous
#452F99 #7A2F99 #992F83
triadic
#7A2F99 #997A2F #2F997A
tetradic
#7A2F99 #99452F #4E992F #2F8399
square
#7A2F99 #99452F #4E992F #2F8399
split-complementary
#7A2F99 #83992F #2F9945
monochromatic
#2F123B #55216A #7A2F99 #9E41C5 #B66FD3

Accessibility & contrast

On white

7.79
#7A2F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#7A2F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2F99
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2F99#FFFFFF#000000##FFFFFF
##7A2F991.007.792.697.79
#FFFFFF7.791.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9C
Deuteranopia (green-blind)
#2A5497
Tritanopia (blue-blind)
#774460
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7a2f99;
/* rgb */ color: rgb(122, 47, 153);
/* oklch */ color: oklch(46.1% 0.172 314.3);
Tailwind
colors: {
  custom: {
    50: '#a46eb8',
    500: '#7a2f99',
    950: '#000000',
  },
}
SCSS
$custom: #7a2f99;
$custom-light: #a46eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2f99",
  "rgb": {
    "r": 122,
    "g": 47,
    "b": 153
  },
  "hsl": {
    "h": 282.453,
    "s": 53,
    "l": 39.216
  },
  "oklch": {
    "l": 0.46079,
    "c": 0.17197,
    "h": 314.3
  },
  "luminance": 0.08471
}

Semantic roles & 50–950 ramp

primary
#7A2F99
secondary
#81BA69
accent
#DC4B76
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7A2F99

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

Preview Lab → · Contrast checker → · Palette generator →

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