#7C2EBD#7C2EBD

#7C2EBD is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.9% C 0.210 H 304.3°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#7C2EBD
RGBrgb(124, 46, 189)
HSLhsl(273, 61%, 46%)
HSVhsv(273, 76%, 74%)
CMYKcmyk(34.4%, 75.7%, 0%, 25.9%)
CIE-LABlab(37.69, 58.22, -60.78)
CIE-LCHlch(37.69, 84.16, 313.77°)
OKLaboklab(48.91% 0.1182 -0.1731)
OKLCHoklch(48.91% 0.21 304.3)
XYZxyz(18.4724, 9.9133, 49.0745)
Luminance0.0991 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2EBD #6FBD2E
analogous
#342EBD #7C2EBD #BD2EB6
triadic
#7C2EBD #BD7C2E #2EBD7C
tetradic
#7C2EBD #BD342E #6FBD2E #2EB6BD
square
#7C2EBD #BD342E #6FBD2E #2EB6BD
split-complementary
#7C2EBD #B6BD2E #2EBD34
monochromatic
#3B165B #5C228C #7C2EBD #9A53D5 #B784E1

Accessibility & contrast

On white

7.04
#7C2EBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#7C2EBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2EBD
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2EBD#FFFFFF#000000##FFFFFF
##7C2EBD1.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C1
Deuteranopia (green-blind)
#0059BA
Tritanopia (blue-blind)
#6F5274
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7c2ebd;
/* rgb */ color: rgb(124, 46, 189);
/* oklch */ color: oklch(48.9% 0.210 304.3);
Tailwind
colors: {
  custom: {
    50: '#a86fd2',
    500: '#7c2ebd',
    950: '#000000',
  },
}
SCSS
$custom: #7c2ebd;
$custom-light: #a86fd2;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2ebd",
  "rgb": {
    "r": 124,
    "g": 46,
    "b": 189
  },
  "hsl": {
    "h": 272.727,
    "s": 60.851,
    "l": 46.078
  },
  "oklch": {
    "l": 0.48907,
    "c": 0.20964,
    "h": 304.3
  },
  "luminance": 0.09913
}

Semantic roles & 50–950 ramp

primary
#7C2EBD
secondary
#A0CA7C
accent
#E4448D
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7C2EBD

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

Preview Lab → · Contrast checker → · Palette generator →

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