#7C2BB4#7C2BB4

#7C2BB4 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 47.9% C 0.204 H 307.0°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#7C2BB4
RGBrgb(124, 43, 180)
HSLhsl(275, 61%, 44%)
HSVhsv(275, 76%, 71%)
CMYKcmyk(31.1%, 76.1%, 0%, 29.4%)
CIE-LABlab(36.57, 57.37, -57.28)
CIE-LCHlch(36.57, 81.07, 315.05°)
OKLaboklab(47.9% 0.1228 -0.1628)
OKLCHoklch(47.9% 0.204 307)
XYZxyz(17.4125, 9.3083, 44.0506)
Luminance0.0931 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2BB4 #63B42B
analogous
#372BB4 #7C2BB4 #B42BA7
triadic
#7C2BB4 #B47C2B #2BB47C
tetradic
#7C2BB4 #B4372B #63B42B #2BA7B4
square
#7C2BB4 #B4372B #63B42B #2BA7B4
split-complementary
#7C2BB4 #A7B42B #2BB437
monochromatic
#381351 #5A1F83 #7C2BB4 #9B49D3 #B67ADF

Accessibility & contrast

On white

7.34
#7C2BB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#7C2BB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2BB4
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2BB4#FFFFFF#000000##FFFFFF
##7C2BB41.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B8
Deuteranopia (green-blind)
#0057B1
Tritanopia (blue-blind)
#724D6E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7c2bb4;
/* rgb */ color: rgb(124, 43, 180);
/* oklch */ color: oklch(47.9% 0.204 307.0);
Tailwind
colors: {
  custom: {
    50: '#a76dcb',
    500: '#7c2bb4',
    950: '#000000',
  },
}
SCSS
$custom: #7c2bb4;
$custom-light: #a76dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2bb4",
  "rgb": {
    "r": 124,
    "g": 43,
    "b": 180
  },
  "hsl": {
    "h": 275.474,
    "s": 61.435,
    "l": 43.725
  },
  "oklch": {
    "l": 0.47904,
    "c": 0.20397,
    "h": 307
  },
  "luminance": 0.09308
}

Semantic roles & 50–950 ramp

primary
#7C2BB4
secondary
#96C773
accent
#E54385
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7C2BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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