#7C2FA5#7C2FA5

#7C2FA5 is a mid, vivid violet. Relative luminance 0.090; OKLCH L 47.2% C 0.185 H 311.2°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#7C2FA5
RGBrgb(124, 47, 165)
HSLhsl(279, 56%, 42%)
HSVhsv(279, 72%, 65%)
CMYKcmyk(24.8%, 71.5%, 0%, 35.3%)
CIE-LABlab(36.05, 52.40, -49.17)
CIE-LCHlch(36.05, 71.86, 316.82°)
OKLaboklab(47.19% 0.1215 -0.139)
OKLCHoklch(47.19% 0.185 311.2)
XYZxyz(16.1189, 9.0351, 36.4848)
Luminance0.0903 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2FA5 #58A52F
analogous
#412FA5 #7C2FA5 #A52F93
triadic
#7C2FA5 #A57C2F #2FA57C
tetradic
#7C2FA5 #A5412F #58A52F #2F93A5
square
#7C2FA5 #A5412F #58A52F #2F93A5
split-complementary
#7C2FA5 #93A52F #2FA541
monochromatic
#341446 #582175 #7C2FA5 #9D47CB #B676D8

Accessibility & contrast

On white

7.48
#7C2FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#7C2FA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2FA5
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2FA5#FFFFFF#000000##FFFFFF
##7C2FA51.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A8
Deuteranopia (green-blind)
#1E56A2
Tritanopia (blue-blind)
#774967
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7c2fa5;
/* rgb */ color: rgb(124, 47, 165);
/* oklch */ color: oklch(47.2% 0.185 311.2);
Tailwind
colors: {
  custom: {
    50: '#a66ec0',
    500: '#7c2fa5',
    950: '#000000',
  },
}
SCSS
$custom: #7c2fa5;
$custom-light: #a66ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2fa5",
  "rgb": {
    "r": 124,
    "g": 47,
    "b": 165
  },
  "hsl": {
    "h": 279.153,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.4719,
    "c": 0.18464,
    "h": 311.2
  },
  "luminance": 0.09035
}

Semantic roles & 50–950 ramp

primary
#7C2FA5
secondary
#8CC070
accent
#DF497D
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7C2FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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