#7C2FC5#7C2FC5

#7C2FC5 is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.6% C 0.217 H 302.2°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#7C2FC5
RGBrgb(124, 47, 197)
HSLhsl(271, 61%, 48%)
HSVhsv(271, 76%, 77%)
CMYKcmyk(37.1%, 76.1%, 0%, 22.7%)
CIE-LABlab(38.46, 59.66, -64.20)
CIE-LCHlch(38.46, 87.64, 312.90°)
OKLaboklab(49.65% 0.1155 -0.1832)
OKLCHoklch(49.65% 0.217 302.2)
XYZxyz(19.4043, 10.3493, 53.7878)
Luminance0.1035 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2FC5 #78C52F
analogous
#312FC5 #7C2FC5 #C52FC3
triadic
#7C2FC5 #C57C2F #2FC57C
tetradic
#7C2FC5 #C5312F #78C52F #2FC3C5
square
#7C2FC5 #C5312F #78C52F #2FC3C5
split-complementary
#7C2FC5 #C3C52F #2FC531
monochromatic
#3E1762 #5D2394 #7C2FC5 #9A5AD8 #B88BE3

Accessibility & contrast

On white

6.84
#7C2FC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#7C2FC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C2FC5
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2FC5#FFFFFF#000000##FFFFFF
##7C2FC51.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C9
Deuteranopia (green-blind)
#005AC2
Tritanopia (blue-blind)
#6C5679
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7c2fc5;
/* rgb */ color: rgb(124, 47, 197);
/* oklch */ color: oklch(49.6% 0.217 302.2);
Tailwind
colors: {
  custom: {
    50: '#a870d8',
    500: '#7c2fc5',
    950: '#000000',
  },
}
SCSS
$custom: #7c2fc5;
$custom-light: #a870d8;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2fc5",
  "rgb": {
    "r": 124,
    "g": 47,
    "b": 197
  },
  "hsl": {
    "h": 270.8,
    "s": 61.475,
    "l": 47.843
  },
  "oklch": {
    "l": 0.49649,
    "c": 0.21656,
    "h": 302.2
  },
  "luminance": 0.10349
}

Semantic roles & 50–950 ramp

primary
#7C2FC5
secondary
#A7CD82
accent
#E54392
background
#FAF7FD
surface
#F5EDFA
border
#CFC8D3
text
#110815
muted
#807B83

Preview Lab

Preview with #7C2FC5

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

Preview Lab → · Contrast checker → · Palette generator →

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