#7C2BB7#7C2BB7

#7C2BB7 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.1% C 0.207 H 306.2°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#7C2BB7
RGBrgb(124, 43, 183)
HSLhsl(275, 62%, 44%)
HSVhsv(275, 77%, 72%)
CMYKcmyk(32.2%, 76.5%, 0%, 28.2%)
CIE-LABlab(36.80, 58.04, -58.68)
CIE-LCHlch(36.80, 82.54, 314.69°)
OKLaboklab(48.14% 0.1222 -0.1669)
OKLCHoklch(48.14% 0.207 306.2)
XYZxyz(17.7214, 9.4319, 45.6775)
Luminance0.0943 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2BB7 #66B72B
analogous
#362BB7 #7C2BB7 #B72BAC
triadic
#7C2BB7 #B77C2B #2BB77C
tetradic
#7C2BB7 #B7362B #66B72B #2BACB7
square
#7C2BB7 #B7362B #66B72B #2BACB7
split-complementary
#7C2BB7 #ACB72B #2BB736
monochromatic
#391454 #5A1F85 #7C2BB7 #9A4BD5 #B67CE0

Accessibility & contrast

On white

7.28
#7C2BB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#7C2BB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2BB7
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2BB7#FFFFFF#000000##FFFFFF
##7C2BB71.007.282.897.28
#FFFFFF7.281.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BB
Deuteranopia (green-blind)
#0057B4
Tritanopia (blue-blind)
#714E70
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7c2bb7;
/* rgb */ color: rgb(124, 43, 183);
/* oklch */ color: oklch(48.1% 0.207 306.2);
Tailwind
colors: {
  custom: {
    50: '#a76dce',
    500: '#7c2bb7',
    950: '#000000',
  },
}
SCSS
$custom: #7c2bb7;
$custom-light: #a76dce;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2bb7",
  "rgb": {
    "r": 124,
    "g": 43,
    "b": 183
  },
  "hsl": {
    "h": 274.714,
    "s": 61.947,
    "l": 44.314
  },
  "oklch": {
    "l": 0.4814,
    "c": 0.20687,
    "h": 306.2
  },
  "luminance": 0.09432
}

Semantic roles & 50–950 ramp

primary
#7C2BB7
secondary
#98C975
accent
#E54387
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7C2BB7

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

Preview Lab → · Contrast checker → · Palette generator →

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