#7C2EB5#7C2EB5

#7C2EB5 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.3% C 0.202 H 306.5°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#7C2EB5
RGBrgb(124, 46, 181)
HSLhsl(275, 59%, 45%)
HSVhsv(275, 75%, 71%)
CMYKcmyk(31.5%, 74.6%, 0%, 29%)
CIE-LABlab(37.07, 56.39, -57.06)
CIE-LCHlch(37.07, 80.23, 314.66°)
OKLaboklab(48.28% 0.1199 -0.1622)
OKLCHoklch(48.28% 0.202 306.5)
XYZxyz(17.6278, 9.5755, 44.6267)
Luminance0.0958 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2EB5 #67B52E
analogous
#392EB5 #7C2EB5 #B52EAA
triadic
#7C2EB5 #B57C2E #2EB57C
tetradic
#7C2EB5 #B5392E #67B52E #2EAAB5
square
#7C2EB5 #B5392E #67B52E #2EAAB5
split-complementary
#7C2EB5 #AAB52E #2EB539
monochromatic
#391553 #5B2284 #7C2EB5 #9A4ED2 #B67FDE

Accessibility & contrast

On white

7.20
#7C2EB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C2EB5
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2EB5#FFFFFF#000000##FFFFFF
##7C2EB51.007.202.917.20
#FFFFFF7.201.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B9
Deuteranopia (green-blind)
#0058B2
Tritanopia (blue-blind)
#724F6F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7c2eb5;
/* rgb */ color: rgb(124, 46, 181);
/* oklch */ color: oklch(48.3% 0.202 306.5);
Tailwind
colors: {
  custom: {
    50: '#a76fcc',
    500: '#7c2eb5',
    950: '#000000',
  },
}
SCSS
$custom: #7c2eb5;
$custom-light: #a76fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2eb5",
  "rgb": {
    "r": 124,
    "g": 46,
    "b": 181
  },
  "hsl": {
    "h": 274.667,
    "s": 59.471,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48279,
    "c": 0.20171,
    "h": 306.5
  },
  "luminance": 0.09575
}

Semantic roles & 50–950 ramp

primary
#7C2EB5
secondary
#99C778
accent
#E34588
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7C2EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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