#7A2F91#7A2F91

#7A2F91 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.5% C 0.164 H 317.3°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#7A2F91
RGBrgb(122, 47, 145)
HSLhsl(286, 51%, 38%)
HSVhsv(286, 68%, 57%)
CMYKcmyk(15.9%, 67.6%, 0%, 43.1%)
CIE-LABlab(34.43, 47.65, -39.66)
CIE-LCHlch(34.43, 62.00, 320.23°)
OKLaboklab(45.54% 0.1206 -0.1112)
OKLCHoklch(45.54% 0.164 317.3)
XYZxyz(14.1526, 8.2155, 27.6228)
Luminance0.0822 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2F91 #46912F
analogous
#492F91 #7A2F91 #912F77
triadic
#7A2F91 #917A2F #2F917A
tetradic
#7A2F91 #91492F #46912F #2F7791
square
#7A2F91 #91492F #46912F #2F7791
split-complementary
#7A2F91 #77912F #2F9149
monochromatic
#2C1135 #532063 #7A2F91 #A13EBF #B86BCF

Accessibility & contrast

On white

7.95
#7A2F91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#7A2F91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2F91
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2F91#FFFFFF#000000##FFFFFF
##7A2F911.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#054C94
Deuteranopia (green-blind)
#32538F
Tritanopia (blue-blind)
#79415C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7a2f91;
/* rgb */ color: rgb(122, 47, 145);
/* oklch */ color: oklch(45.5% 0.164 317.3);
Tailwind
colors: {
  custom: {
    50: '#a36db2',
    500: '#7a2f91',
    950: '#000000',
  },
}
SCSS
$custom: #7a2f91;
$custom-light: #a36db2;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2f91",
  "rgb": {
    "r": 122,
    "g": 47,
    "b": 145
  },
  "hsl": {
    "h": 285.918,
    "s": 51.042,
    "l": 37.647
  },
  "oklch": {
    "l": 0.45542,
    "c": 0.16403,
    "h": 317.3
  },
  "luminance": 0.08215
}

Semantic roles & 50–950 ramp

primary
#7A2F91
secondary
#78B665
accent
#DB4D6E
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#0F0711
muted
#7F7A80

Preview Lab

Preview with #7A2F91

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

Preview Lab → · Contrast checker → · Palette generator →

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