#7C2FB6#7C2FB6

#7C2FB6 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.5% C 0.202 H 306.1°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#7C2FB6
RGBrgb(124, 47, 182)
HSLhsl(274, 59%, 45%)
HSVhsv(274, 74%, 71%)
CMYKcmyk(31.9%, 74.2%, 0%, 28.6%)
CIE-LABlab(37.29, 56.20, -57.30)
CIE-LCHlch(37.29, 80.26, 314.45°)
OKLaboklab(48.46% 0.1188 -0.1629)
OKLCHoklch(48.46% 0.202 306.1)
XYZxyz(17.7703, 9.6957, 45.1822)
Luminance0.0970 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2FB6 #69B62F
analogous
#382FB6 #7C2FB6 #B62FAD
triadic
#7C2FB6 #B67C2F #2FB67C
tetradic
#7C2FB6 #B6382F #69B62F #2FADB6
square
#7C2FB6 #B6382F #69B62F #2FADB6
split-complementary
#7C2FB6 #ADB62F #2FB638
monochromatic
#3A1655 #5B2285 #7C2FB6 #9A50D2 #B681DE

Accessibility & contrast

On white

7.14
#7C2FB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#7C2FB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2FB6
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2FB6#FFFFFF#000000##FFFFFF
##7C2FB61.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BA
Deuteranopia (green-blind)
#0058B3
Tritanopia (blue-blind)
#725070
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7c2fb6;
/* rgb */ color: rgb(124, 47, 182);
/* oklch */ color: oklch(48.5% 0.202 306.1);
Tailwind
colors: {
  custom: {
    50: '#a76fcd',
    500: '#7c2fb6',
    950: '#000000',
  },
}
SCSS
$custom: #7c2fb6;
$custom-light: #a76fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2fb6",
  "rgb": {
    "r": 124,
    "g": 47,
    "b": 182
  },
  "hsl": {
    "h": 274.222,
    "s": 58.952,
    "l": 44.902
  },
  "oklch": {
    "l": 0.48459,
    "c": 0.20159,
    "h": 306.1
  },
  "luminance": 0.09696
}

Semantic roles & 50–950 ramp

primary
#7C2FB6
secondary
#9BC779
accent
#E24689
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7C2FB6

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

Preview Lab → · Contrast checker → · Palette generator →

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