#7A2FA8#7A2FA8

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

Color values

HEX#7A2FA8
RGBrgb(122, 47, 168)
HSLhsl(277, 56%, 42%)
HSVhsv(277, 72%, 66%)
CMYKcmyk(27.4%, 72%, 0%, 34.1%)
CIE-LABlab(35.98, 52.65, -51.10)
CIE-LCHlch(35.98, 73.37, 315.86°)
OKLaboklab(47.15% 0.1184 -0.1448)
OKLCHoklch(47.15% 0.187 309.3)
XYZxyz(16.1090, 8.9981, 37.9264)
Luminance0.0900 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2FA8 #5DA82F
analogous
#3E2FA8 #7A2FA8 #A82F9A
triadic
#7A2FA8 #A87A2F #2FA87A
tetradic
#7A2FA8 #A83E2F #5DA82F #2F9AA8
square
#7A2FA8 #A83E2F #5DA82F #2F9AA8
split-complementary
#7A2FA8 #9AA82F #2FA83E
monochromatic
#351448 #572278 #7A2FA8 #9A48CC #B478D9

Accessibility & contrast

On white

7.50
#7A2FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#7A2FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2FA8
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2FA8#FFFFFF#000000##FFFFFF
##7A2FA81.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AB
Deuteranopia (green-blind)
#1356A5
Tritanopia (blue-blind)
#734A68
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7a2fa8;
/* rgb */ color: rgb(122, 47, 168);
/* oklch */ color: oklch(47.1% 0.187 309.3);
Tailwind
colors: {
  custom: {
    50: '#a56ec3',
    500: '#7a2fa8',
    950: '#000000',
  },
}
SCSS
$custom: #7a2fa8;
$custom-light: #a56ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2fa8",
  "rgb": {
    "r": 122,
    "g": 47,
    "b": 168
  },
  "hsl": {
    "h": 277.19,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.47147,
    "c": 0.18702,
    "h": 309.3
  },
  "luminance": 0.08998
}

Semantic roles & 50–950 ramp

primary
#7A2FA8
secondary
#90C171
accent
#E04882
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7A2FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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