#7A2FA7#7A2FA7

#7A2FA7 is a mid, vivid violet. Relative luminance 0.090; OKLCH L 47.1% C 0.186 H 309.6°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#7A2FA7
RGBrgb(122, 47, 167)
HSLhsl(278, 56%, 42%)
HSVhsv(278, 72%, 65%)
CMYKcmyk(26.9%, 71.9%, 0%, 34.5%)
CIE-LABlab(35.91, 52.43, -50.62)
CIE-LCHlch(35.91, 72.87, 316.01°)
OKLaboklab(47.07% 0.1186 -0.1433)
OKLCHoklch(47.07% 0.186 309.6)
XYZxyz(16.0162, 8.9609, 37.4376)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2FA7 #5CA72F
analogous
#3E2FA7 #7A2FA7 #A72F98
triadic
#7A2FA7 #A77A2F #2FA77A
tetradic
#7A2FA7 #A73E2F #5CA72F #2F98A7
square
#7A2FA7 #A73E2F #5CA72F #2F98A7
split-complementary
#7A2FA7 #98A72F #2FA73E
monochromatic
#341447 #572277 #7A2FA7 #9A48CB #B478D9

Accessibility & contrast

On white

7.52
#7A2FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#7A2FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2FA7
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2FA7#FFFFFF#000000##FFFFFF
##7A2FA71.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AA
Deuteranopia (green-blind)
#1656A4
Tritanopia (blue-blind)
#744A68
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7a2fa7;
/* rgb */ color: rgb(122, 47, 167);
/* oklch */ color: oklch(47.1% 0.186 309.6);
Tailwind
colors: {
  custom: {
    50: '#a56ec2',
    500: '#7a2fa7',
    950: '#000000',
  },
}
SCSS
$custom: #7a2fa7;
$custom-light: #a56ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2fa7",
  "rgb": {
    "r": 122,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 277.5,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.47073,
    "c": 0.186,
    "h": 309.6
  },
  "luminance": 0.08961
}

Semantic roles & 50–950 ramp

primary
#7A2FA7
secondary
#8FC171
accent
#DF4881
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7A2FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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