#7C2FA3#7C2FA3

#7C2FA3 is a mid, vivid violet. Relative luminance 0.090; OKLCH L 47.0% C 0.183 H 311.8°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#7C2FA3
RGBrgb(124, 47, 163)
HSLhsl(280, 55%, 41%)
HSVhsv(280, 71%, 64%)
CMYKcmyk(23.9%, 71.2%, 0%, 36.1%)
CIE-LABlab(35.91, 51.96, -48.19)
CIE-LCHlch(35.91, 70.87, 317.15°)
OKLaboklab(47.05% 0.1218 -0.1361)
OKLCHoklch(47.05% 0.183 311.8)
XYZxyz(15.9383, 8.9629, 35.5336)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2FA3 #56A32F
analogous
#422FA3 #7C2FA3 #A32F90
triadic
#7C2FA3 #A37C2F #2FA37C
tetradic
#7C2FA3 #A3422F #56A32F #2F90A3
square
#7C2FA3 #A3422F #56A32F #2F90A3
split-complementary
#7C2FA3 #90A32F #2FA342
monochromatic
#341444 #582173 #7C2FA3 #9D46CA #B675D7

Accessibility & contrast

On white

7.52
#7C2FA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#7C2FA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2FA3
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2FA3#FFFFFF#000000##FFFFFF
##7C2FA31.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A6
Deuteranopia (green-blind)
#2156A0
Tritanopia (blue-blind)
#774866
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7c2fa3;
/* rgb */ color: rgb(124, 47, 163);
/* oklch */ color: oklch(47.0% 0.183 311.8);
Tailwind
colors: {
  custom: {
    50: '#a66ebf',
    500: '#7c2fa3',
    950: '#000000',
  },
}
SCSS
$custom: #7c2fa3;
$custom-light: #a66ebf;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2fa3",
  "rgb": {
    "r": 124,
    "g": 47,
    "b": 163
  },
  "hsl": {
    "h": 279.828,
    "s": 55.238,
    "l": 41.176
  },
  "oklch": {
    "l": 0.47047,
    "c": 0.18265,
    "h": 311.8
  },
  "luminance": 0.08962
}

Semantic roles & 50–950 ramp

primary
#7C2FA3
secondary
#8ABF6F
accent
#DF497B
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7C2FA3

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

Preview Lab → · Contrast checker → · Palette generator →

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