#7C2EA8#7C2EA8

#7C2EA8 is a mid, vivid violet. Relative luminance 0.091; OKLCH L 47.3% C 0.189 H 310.3°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#7C2EA8
RGBrgb(124, 46, 168)
HSLhsl(278, 57%, 42%)
HSVhsv(278, 73%, 66%)
CMYKcmyk(26.2%, 72.6%, 0%, 34.1%)
CIE-LABlab(36.11, 53.49, -50.87)
CIE-LCHlch(36.11, 73.82, 316.44°)
OKLaboklab(47.3% 0.1221 -0.144)
OKLCHoklch(47.3% 0.189 310.3)
XYZxyz(16.3557, 9.0666, 37.9266)
Luminance0.0907 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2EA8 #5AA82E
analogous
#3F2EA8 #7C2EA8 #A82E97
triadic
#7C2EA8 #A87C2E #2EA87C
tetradic
#7C2EA8 #A83F2E #5AA82E #2E97A8
square
#7C2EA8 #A83F2E #5AA82E #2E97A8
split-complementary
#7C2EA8 #97A82E #2EA83F
monochromatic
#351448 #592178 #7C2EA8 #9C47CD #B677DA

Accessibility & contrast

On white

7.46
#7C2EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#7C2EA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2EA8
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2EA8#FFFFFF#000000##FFFFFF
##7C2EA81.007.462.817.46
#FFFFFF7.461.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AB
Deuteranopia (green-blind)
#1656A5
Tritanopia (blue-blind)
#764968
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7c2ea8;
/* rgb */ color: rgb(124, 46, 168);
/* oklch */ color: oklch(47.3% 0.189 310.3);
Tailwind
colors: {
  custom: {
    50: '#a66ec3',
    500: '#7c2ea8',
    950: '#000000',
  },
}
SCSS
$custom: #7c2ea8;
$custom-light: #a66ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2ea8",
  "rgb": {
    "r": 124,
    "g": 46,
    "b": 168
  },
  "hsl": {
    "h": 278.361,
    "s": 57.009,
    "l": 41.961
  },
  "oklch": {
    "l": 0.473,
    "c": 0.18882,
    "h": 310.3
  },
  "luminance": 0.09066
}

Semantic roles & 50–950 ramp

primary
#7C2EA8
secondary
#8EC270
accent
#E0487F
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7C2EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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