#7C2FA7#7C2FA7

#7C2FA7 is a mid, vivid violet. Relative luminance 0.091; OKLCH L 47.3% C 0.187 H 310.5°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#7C2FA7
RGBrgb(124, 47, 167)
HSLhsl(279, 56%, 42%)
HSVhsv(279, 72%, 65%)
CMYKcmyk(25.7%, 71.9%, 0%, 34.5%)
CIE-LABlab(36.19, 52.84, -50.14)
CIE-LCHlch(36.19, 72.84, 316.50°)
OKLaboklab(47.33% 0.1213 -0.1419)
OKLCHoklch(47.33% 0.187 310.5)
XYZxyz(16.3024, 9.1085, 37.4511)
Luminance0.0911 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2FA7 #5AA72F
analogous
#402FA7 #7C2FA7 #A72F96
triadic
#7C2FA7 #A77C2F #2FA77C
tetradic
#7C2FA7 #A7402F #5AA72F #2F96A7
square
#7C2FA7 #A7402F #5AA72F #2F96A7
split-complementary
#7C2FA7 #96A72F #2FA740
monochromatic
#351447 #592277 #7C2FA7 #9C48CB #B678D9

Accessibility & contrast

On white

7.44
#7C2FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#7C2FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2FA7
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2FA7#FFFFFF#000000##FFFFFF
##7C2FA71.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AA
Deuteranopia (green-blind)
#1A56A4
Tritanopia (blue-blind)
#764A68
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7c2fa7;
/* rgb */ color: rgb(124, 47, 167);
/* oklch */ color: oklch(47.3% 0.187 310.5);
Tailwind
colors: {
  custom: {
    50: '#a66ec2',
    500: '#7c2fa7',
    950: '#000000',
  },
}
SCSS
$custom: #7c2fa7;
$custom-light: #a66ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2fa7",
  "rgb": {
    "r": 124,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 278.5,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.47334,
    "c": 0.18663,
    "h": 310.5
  },
  "luminance": 0.09108
}

Semantic roles & 50–950 ramp

primary
#7C2FA7
secondary
#8EC171
accent
#DF487F
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7C2FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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