#7C2FA9#7C2FA9

#7C2FA9 is a mid, vivid violet. Relative luminance 0.092; OKLCH L 47.5% C 0.189 H 309.9°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#7C2FA9
RGBrgb(124, 47, 169)
HSLhsl(278, 56%, 42%)
HSVhsv(278, 72%, 66%)
CMYKcmyk(26.6%, 72.2%, 0%, 33.7%)
CIE-LABlab(36.33, 53.28, -51.11)
CIE-LCHlch(36.33, 73.83, 316.19°)
OKLaboklab(47.48% 0.121 -0.1447)
OKLCHoklch(47.48% 0.189 309.9)
XYZxyz(16.4887, 9.1830, 38.4323)
Luminance0.0918 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2FA9 #5CA92F
analogous
#3F2FA9 #7C2FA9 #A92F99
triadic
#7C2FA9 #A97C2F #2FA97C
tetradic
#7C2FA9 #A93F2F #5CA92F #2F99A9
square
#7C2FA9 #A93F2F #5CA92F #2F99A9
split-complementary
#7C2FA9 #99A92F #2FA93F
monochromatic
#361449 #592279 #7C2FA9 #9C49CC #B679DA

Accessibility & contrast

On white

7.40
#7C2FA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#7C2FA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2FA9
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2FA9#FFFFFF#000000##FFFFFF
##7C2FA91.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AD
Deuteranopia (green-blind)
#1657A6
Tritanopia (blue-blind)
#764A69
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7c2fa9;
/* rgb */ color: rgb(124, 47, 169);
/* oklch */ color: oklch(47.5% 0.189 309.9);
Tailwind
colors: {
  custom: {
    50: '#a66fc3',
    500: '#7c2fa9',
    950: '#000000',
  },
}
SCSS
$custom: #7c2fa9;
$custom-light: #a66fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2fa9",
  "rgb": {
    "r": 124,
    "g": 47,
    "b": 169
  },
  "hsl": {
    "h": 277.869,
    "s": 56.481,
    "l": 42.353
  },
  "oklch": {
    "l": 0.4748,
    "c": 0.18863,
    "h": 309.9
  },
  "luminance": 0.09183
}

Semantic roles & 50–950 ramp

primary
#7C2FA9
secondary
#8FC272
accent
#E04880
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7C2FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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