#7C2EB3#7C2EB3

#7C2EB3 is a mid, vivid violet. Relative luminance 0.095; OKLCH L 48.1% C 0.200 H 307.0°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#7C2EB3
RGBrgb(124, 46, 179)
HSLhsl(275, 59%, 44%)
HSVhsv(275, 74%, 70%)
CMYKcmyk(30.7%, 74.3%, 0%, 29.8%)
CIE-LABlab(36.92, 55.94, -56.12)
CIE-LCHlch(36.92, 79.24, 314.91°)
OKLaboklab(48.13% 0.1203 -0.1594)
OKLCHoklch(48.13% 0.2 307)
XYZxyz(17.4241, 9.4940, 43.5537)
Luminance0.0949 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2EB3 #65B32E
analogous
#3A2EB3 #7C2EB3 #B32EA8
triadic
#7C2EB3 #B37C2E #2EB37C
tetradic
#7C2EB3 #B33A2E #65B32E #2EA8B3
square
#7C2EB3 #B33A2E #65B32E #2EA8B3
split-complementary
#7C2EB3 #A8B32E #2EB33A
monochromatic
#391552 #5A2182 #7C2EB3 #9B4DD1 #B67EDE

Accessibility & contrast

On white

7.24
#7C2EB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#7C2EB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2EB3
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2EB3#FFFFFF#000000##FFFFFF
##7C2EB31.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B7
Deuteranopia (green-blind)
#0057B0
Tritanopia (blue-blind)
#734E6E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7c2eb3;
/* rgb */ color: rgb(124, 46, 179);
/* oklch */ color: oklch(48.1% 0.200 307.0);
Tailwind
colors: {
  custom: {
    50: '#a76ecb',
    500: '#7c2eb3',
    950: '#000000',
  },
}
SCSS
$custom: #7c2eb3;
$custom-light: #a76ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2eb3",
  "rgb": {
    "r": 124,
    "g": 46,
    "b": 179
  },
  "hsl": {
    "h": 275.188,
    "s": 59.111,
    "l": 44.118
  },
  "oklch": {
    "l": 0.48125,
    "c": 0.19973,
    "h": 307
  },
  "luminance": 0.09494
}

Semantic roles & 50–950 ramp

primary
#7C2EB3
secondary
#97C676
accent
#E24686
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7C2EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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