#7C2AAF#7C2AAF

#7C2AAF is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.4% C 0.200 H 308.6°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#7C2AAF
RGBrgb(124, 42, 175)
HSLhsl(277, 61%, 43%)
HSVhsv(277, 76%, 69%)
CMYKcmyk(29.1%, 76%, 0%, 31.4%)
CIE-LABlab(36.05, 56.66, -55.15)
CIE-LCHlch(36.05, 79.06, 315.77°)
OKLaboklab(47.42% 0.1248 -0.1565)
OKLCHoklch(47.42% 0.2 308.6)
XYZxyz(16.8764, 9.0364, 41.4043)
Luminance0.0904 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2AAF #5DAF2A
analogous
#392AAF #7C2AAF #AF2AA0
triadic
#7C2AAF #AF7C2A #2AAF7C
tetradic
#7C2AAF #AF392A #5DAF2A #2AA0AF
square
#7C2AAF #AF392A #5DAF2A #2AA0AF
split-complementary
#7C2AAF #A0AF2A #2AAF39
monochromatic
#36124C #591E7E #7C2AAF #9C44D2 #B675DE

Accessibility & contrast

On white

7.48
#7C2AAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C2AAF
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2AAF#FFFFFF#000000##FFFFFF
##7C2AAF1.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B3
Deuteranopia (green-blind)
#0056AC
Tritanopia (blue-blind)
#744A6B
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7c2aaf;
/* rgb */ color: rgb(124, 42, 175);
/* oklch */ color: oklch(47.4% 0.200 308.6);
Tailwind
colors: {
  custom: {
    50: '#a76cc8',
    500: '#7c2aaf',
    950: '#000000',
  },
}
SCSS
$custom: #7c2aaf;
$custom-light: #a76cc8;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2aaf",
  "rgb": {
    "r": 124,
    "g": 42,
    "b": 175
  },
  "hsl": {
    "h": 276.992,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.47421,
    "c": 0.20018,
    "h": 308.6
  },
  "luminance": 0.09036
}

Semantic roles & 50–950 ramp

primary
#7C2AAF
secondary
#90C66F
accent
#E44381
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7C2AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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