#7C2EBC#7C2EBC

#7C2EBC is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.8% C 0.209 H 304.6°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#7C2EBC
RGBrgb(124, 46, 188)
HSLhsl(273, 61%, 46%)
HSVhsv(273, 76%, 74%)
CMYKcmyk(34%, 75.5%, 0%, 26.3%)
CIE-LABlab(37.61, 57.99, -60.32)
CIE-LCHlch(37.61, 83.67, 313.87°)
OKLaboklab(48.83% 0.1184 -0.1718)
OKLCHoklch(48.83% 0.209 304.6)
XYZxyz(18.3642, 9.8700, 48.5048)
Luminance0.0987 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2EBC #6EBC2E
analogous
#352EBC #7C2EBC #BC2EB5
triadic
#7C2EBC #BC7C2E #2EBC7C
tetradic
#7C2EBC #BC352E #6EBC2E #2EB5BC
square
#7C2EBC #BC352E #6EBC2E #2EB5BC
split-complementary
#7C2EBC #B5BC2E #2EBC35
monochromatic
#3B165A #5C228B #7C2EBC #9A52D5 #B784E1

Accessibility & contrast

On white

7.06
#7C2EBC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#7C2EBC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2EBC
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2EBC#FFFFFF#000000##FFFFFF
##7C2EBC1.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C0
Deuteranopia (green-blind)
#0058B9
Tritanopia (blue-blind)
#705273
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7c2ebc;
/* rgb */ color: rgb(124, 46, 188);
/* oklch */ color: oklch(48.8% 0.209 304.6);
Tailwind
colors: {
  custom: {
    50: '#a86fd1',
    500: '#7c2ebc',
    950: '#000000',
  },
}
SCSS
$custom: #7c2ebc;
$custom-light: #a86fd1;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2ebc",
  "rgb": {
    "r": 124,
    "g": 46,
    "b": 188
  },
  "hsl": {
    "h": 272.958,
    "s": 60.684,
    "l": 45.882
  },
  "oklch": {
    "l": 0.48827,
    "c": 0.20865,
    "h": 304.6
  },
  "luminance": 0.0987
}

Semantic roles & 50–950 ramp

primary
#7C2EBC
secondary
#9FCA7C
accent
#E4448C
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7C2EBC

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

Preview Lab → · Contrast checker → · Palette generator →

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