#7C2FB7#7C2FB7

#7C2FB7 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.5% C 0.203 H 305.8°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#7C2FB7
RGBrgb(124, 47, 183)
HSLhsl(274, 59%, 45%)
HSVhsv(274, 74%, 72%)
CMYKcmyk(32.2%, 74.3%, 0%, 28.2%)
CIE-LABlab(37.37, 56.43, -57.76)
CIE-LCHlch(37.37, 80.75, 314.33°)
OKLaboklab(48.54% 0.1186 -0.1643)
OKLCHoklch(48.54% 0.203 305.8)
XYZxyz(17.8740, 9.7372, 45.7284)
Luminance0.0974 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2FB7 #6AB72F
analogous
#382FB7 #7C2FB7 #B72FAE
triadic
#7C2FB7 #B77C2F #2FB77C
tetradic
#7C2FB7 #B7382F #6AB72F #2FAEB7
square
#7C2FB7 #B7382F #6AB72F #2FAEB7
split-complementary
#7C2FB7 #AEB72F #2FB738
monochromatic
#3A1656 #5B2286 #7C2FB7 #9A51D2 #B682DF

Accessibility & contrast

On white

7.12
#7C2FB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#7C2FB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2FB7
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2FB7#FFFFFF#000000##FFFFFF
##7C2FB71.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BB
Deuteranopia (green-blind)
#0058B4
Tritanopia (blue-blind)
#715071
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7c2fb7;
/* rgb */ color: rgb(124, 47, 183);
/* oklch */ color: oklch(48.5% 0.203 305.8);
Tailwind
colors: {
  custom: {
    50: '#a76fcd',
    500: '#7c2fb7',
    950: '#000000',
  },
}
SCSS
$custom: #7c2fb7;
$custom-light: #a76fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2fb7",
  "rgb": {
    "r": 124,
    "g": 47,
    "b": 183
  },
  "hsl": {
    "h": 273.971,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.48536,
    "c": 0.20259,
    "h": 305.8
  },
  "luminance": 0.09737
}

Semantic roles & 50–950 ramp

primary
#7C2FB7
secondary
#9CC87A
accent
#E2458A
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7C2FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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