#7A2F95#7A2F95

#7A2F95 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.8% C 0.168 H 315.8°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#7A2F95
RGBrgb(122, 47, 149)
HSLhsl(284, 52%, 38%)
HSVhsv(284, 68%, 58%)
CMYKcmyk(18.1%, 68.5%, 0%, 41.6%)
CIE-LABlab(34.68, 48.50, -41.70)
CIE-LCHlch(34.68, 63.96, 319.31°)
OKLaboklab(45.81% 0.1204 -0.1172)
OKLCHoklch(45.81% 0.168 315.8)
XYZxyz(14.4665, 8.3411, 29.2759)
Luminance0.0834 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2F95 #4A952F
analogous
#472F95 #7A2F95 #952F7D
triadic
#7A2F95 #957A2F #2F957A
tetradic
#7A2F95 #95472F #4A952F #2F7D95
square
#7A2F95 #95472F #4A952F #2F7D95
split-complementary
#7A2F95 #7D952F #2F9547
monochromatic
#2E1238 #542066 #7A2F95 #A03FC2 #B76DD1

Accessibility & contrast

On white

7.87
#7A2F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#7A2F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2F95
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2F95#FFFFFF#000000##FFFFFF
##7A2F951.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D98
Deuteranopia (green-blind)
#2E5493
Tritanopia (blue-blind)
#78435E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7a2f95;
/* rgb */ color: rgb(122, 47, 149);
/* oklch */ color: oklch(45.8% 0.168 315.8);
Tailwind
colors: {
  custom: {
    50: '#a46eb5',
    500: '#7a2f95',
    950: '#000000',
  },
}
SCSS
$custom: #7a2f95;
$custom-light: #a46eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2f95",
  "rgb": {
    "r": 122,
    "g": 47,
    "b": 149
  },
  "hsl": {
    "h": 284.118,
    "s": 52.041,
    "l": 38.431
  },
  "oklch": {
    "l": 0.45807,
    "c": 0.16799,
    "h": 315.8
  },
  "luminance": 0.08341
}

Semantic roles & 50–950 ramp

primary
#7A2F95
secondary
#7DB867
accent
#DB4C72
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7A2F95

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

Preview Lab → · Contrast checker → · Palette generator →

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