#7C2FAF#7C2FAF

#7C2FAF is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.9% C 0.195 H 308.1°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#7C2FAF
RGBrgb(124, 47, 175)
HSLhsl(276, 58%, 44%)
HSVhsv(276, 73%, 69%)
CMYKcmyk(29.1%, 73.1%, 0%, 31.4%)
CIE-LABlab(36.77, 54.62, -53.99)
CIE-LCHlch(36.77, 76.80, 315.33°)
OKLaboklab(47.93% 0.12 -0.1532)
OKLCHoklch(47.93% 0.195 308.1)
XYZxyz(17.0649, 9.4135, 41.4671)
Luminance0.0941 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2FAF #62AF2F
analogous
#3C2FAF #7C2FAF #AF2FA2
triadic
#7C2FAF #AF7C2F #2FAF7C
tetradic
#7C2FAF #AF3C2F #62AF2F #2FA2AF
square
#7C2FAF #AF3C2F #62AF2F #2FA2AF
split-complementary
#7C2FAF #A2AF2F #2FAF3C
monochromatic
#38154F #5A227F #7C2FAF #9B4CCF #B67CDC

Accessibility & contrast

On white

7.29
#7C2FAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#7C2FAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2FAF
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2FAF#FFFFFF#000000##FFFFFF
##7C2FAF1.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B3
Deuteranopia (green-blind)
#0357AC
Tritanopia (blue-blind)
#744D6C
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7c2faf;
/* rgb */ color: rgb(124, 47, 175);
/* oklch */ color: oklch(47.9% 0.195 308.1);
Tailwind
colors: {
  custom: {
    50: '#a76fc8',
    500: '#7c2faf',
    950: '#000000',
  },
}
SCSS
$custom: #7c2faf;
$custom-light: #a76fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2faf",
  "rgb": {
    "r": 124,
    "g": 47,
    "b": 175
  },
  "hsl": {
    "h": 276.094,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.47926,
    "c": 0.19461,
    "h": 308.1
  },
  "luminance": 0.09413
}

Semantic roles & 50–950 ramp

primary
#7C2FAF
secondary
#95C475
accent
#E14784
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7C2FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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