#7C2FB3#7C2FB3

#7C2FB3 is a mid, vivid violet. Relative luminance 0.096; OKLCH L 48.2% C 0.199 H 306.9°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#7C2FB3
RGBrgb(124, 47, 179)
HSLhsl(275, 58%, 44%)
HSVhsv(275, 74%, 70%)
CMYKcmyk(30.7%, 73.7%, 0%, 29.8%)
CIE-LABlab(37.06, 55.52, -55.89)
CIE-LCHlch(37.06, 78.78, 314.81°)
OKLaboklab(48.23% 0.1193 -0.1587)
OKLCHoklch(48.23% 0.199 306.9)
XYZxyz(17.4636, 9.5730, 43.5669)
Luminance0.0957 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2FB3 #66B32F
analogous
#3A2FB3 #7C2FB3 #B32FA8
triadic
#7C2FB3 #B37C2F #2FB37C
tetradic
#7C2FB3 #B33A2F #66B32F #2FA8B3
square
#7C2FB3 #B33A2F #66B32F #2FA8B3
split-complementary
#7C2FB3 #A8B32F #2FB33A
monochromatic
#391652 #5A2283 #7C2FB3 #9A4FD1 #B67FDD

Accessibility & contrast

On white

7.21
#7C2FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#7C2FB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2FB3
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2FB3#FFFFFF#000000##FFFFFF
##7C2FB31.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B7
Deuteranopia (green-blind)
#0058B0
Tritanopia (blue-blind)
#734F6F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7c2fb3;
/* rgb */ color: rgb(124, 47, 179);
/* oklch */ color: oklch(48.2% 0.199 306.9);
Tailwind
colors: {
  custom: {
    50: '#a76fcb',
    500: '#7c2fb3',
    950: '#000000',
  },
}
SCSS
$custom: #7c2fb3;
$custom-light: #a76fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2fb3",
  "rgb": {
    "r": 124,
    "g": 47,
    "b": 179
  },
  "hsl": {
    "h": 275,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.48229,
    "c": 0.19859,
    "h": 306.9
  },
  "luminance": 0.09573
}

Semantic roles & 50–950 ramp

primary
#7C2FB3
secondary
#98C678
accent
#E24687
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7C2FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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