#7C2FB5#7C2FB5

#7C2FB5 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.4% C 0.201 H 306.4°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#7C2FB5
RGBrgb(124, 47, 181)
HSLhsl(274, 59%, 45%)
HSVhsv(274, 74%, 71%)
CMYKcmyk(31.5%, 74%, 0%, 29%)
CIE-LABlab(37.22, 55.98, -56.83)
CIE-LCHlch(37.22, 79.77, 314.57°)
OKLaboklab(48.38% 0.119 -0.1615)
OKLCHoklch(48.38% 0.201 306.4)
XYZxyz(17.6674, 9.6545, 44.6399)
Luminance0.0965 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2FB5 #68B52F
analogous
#392FB5 #7C2FB5 #B52FAB
triadic
#7C2FB5 #B57C2F #2FB57C
tetradic
#7C2FB5 #B5392F #68B52F #2FABB5
square
#7C2FB5 #B5392F #68B52F #2FABB5
split-complementary
#7C2FB5 #ABB52F #2FB539
monochromatic
#391654 #5B2284 #7C2FB5 #9A50D1 #B680DE

Accessibility & contrast

On white

7.17
#7C2FB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#7C2FB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2FB5
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2FB5#FFFFFF#000000##FFFFFF
##7C2FB51.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B9
Deuteranopia (green-blind)
#0058B2
Tritanopia (blue-blind)
#724F70
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7c2fb5;
/* rgb */ color: rgb(124, 47, 181);
/* oklch */ color: oklch(48.4% 0.201 306.4);
Tailwind
colors: {
  custom: {
    50: '#a76fcc',
    500: '#7c2fb5',
    950: '#000000',
  },
}
SCSS
$custom: #7c2fb5;
$custom-light: #a76fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2fb5",
  "rgb": {
    "r": 124,
    "g": 47,
    "b": 181
  },
  "hsl": {
    "h": 274.478,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48382,
    "c": 0.20059,
    "h": 306.4
  },
  "luminance": 0.09654
}

Semantic roles & 50–950 ramp

primary
#7C2FB5
secondary
#9AC779
accent
#E24688
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7C2FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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