#7C2BB6#7C2BB6

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

Color values

HEX#7C2BB6
RGBrgb(124, 43, 182)
HSLhsl(275, 62%, 44%)
HSVhsv(275, 76%, 71%)
CMYKcmyk(31.9%, 76.4%, 0%, 28.6%)
CIE-LABlab(36.73, 57.82, -58.21)
CIE-LCHlch(36.73, 82.05, 314.81°)
OKLaboklab(48.06% 0.1224 -0.1656)
OKLCHoklch(48.06% 0.206 306.5)
XYZxyz(17.6177, 9.3904, 45.1313)
Luminance0.0939 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2BB6 #65B62B
analogous
#372BB6 #7C2BB6 #B62BAB
triadic
#7C2BB6 #B67C2B #2BB67C
tetradic
#7C2BB6 #B6372B #65B62B #2BABB6
square
#7C2BB6 #B6372B #65B62B #2BABB6
split-complementary
#7C2BB6 #ABB62B #2BB637
monochromatic
#391453 #5A1F84 #7C2BB6 #9B4AD4 #B67BE0

Accessibility & contrast

On white

7.30
#7C2BB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#7C2BB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2BB6
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2BB6#FFFFFF#000000##FFFFFF
##7C2BB61.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BA
Deuteranopia (green-blind)
#0057B3
Tritanopia (blue-blind)
#724E6F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7c2bb6;
/* rgb */ color: rgb(124, 43, 182);
/* oklch */ color: oklch(48.1% 0.206 306.5);
Tailwind
colors: {
  custom: {
    50: '#a76dcd',
    500: '#7c2bb6',
    950: '#000000',
  },
}
SCSS
$custom: #7c2bb6;
$custom-light: #a76dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2bb6",
  "rgb": {
    "r": 124,
    "g": 43,
    "b": 182
  },
  "hsl": {
    "h": 274.964,
    "s": 61.778,
    "l": 44.118
  },
  "oklch": {
    "l": 0.48061,
    "c": 0.2059,
    "h": 306.5
  },
  "luminance": 0.0939
}

Semantic roles & 50–950 ramp

primary
#7C2BB6
secondary
#97C875
accent
#E54387
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7C2BB6

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

Preview Lab → · Contrast checker → · Palette generator →

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