#7C2FBA#7C2FBA

#7C2FBA is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.8% C 0.206 H 305.0°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#7C2FBA
RGBrgb(124, 47, 186)
HSLhsl(273, 60%, 46%)
HSVhsv(273, 75%, 73%)
CMYKcmyk(33.3%, 74.7%, 0%, 27.1%)
CIE-LABlab(37.60, 57.12, -59.16)
CIE-LCHlch(37.60, 82.23, 313.99°)
OKLaboklab(48.77% 0.118 -0.1684)
OKLCHoklch(48.77% 0.206 305)
XYZxyz(18.1896, 9.8634, 47.3904)
Luminance0.0986 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2FBA #6DBA2F
analogous
#362FBA #7C2FBA #BA2FB3
triadic
#7C2FBA #BA7C2F #2FBA7C
tetradic
#7C2FBA #BA362F #6DBA2F #2FB3BA
square
#7C2FBA #BA362F #6DBA2F #2FB3BA
split-complementary
#7C2FBA #B3BA2F #2FBA36
monochromatic
#3B1658 #5B2389 #7C2FBA #9A53D3 #B784E0

Accessibility & contrast

On white

7.06
#7C2FBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#7C2FBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2FBA
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2FBA#FFFFFF#000000##FFFFFF
##7C2FBA1.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BE
Deuteranopia (green-blind)
#0059B7
Tritanopia (blue-blind)
#705172
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7c2fba;
/* rgb */ color: rgb(124, 47, 186);
/* oklch */ color: oklch(48.8% 0.206 305.0);
Tailwind
colors: {
  custom: {
    50: '#a76fd0',
    500: '#7c2fba',
    950: '#000000',
  },
}
SCSS
$custom: #7c2fba;
$custom-light: #a76fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2fba",
  "rgb": {
    "r": 124,
    "g": 47,
    "b": 186
  },
  "hsl": {
    "h": 273.237,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.4877,
    "c": 0.20558,
    "h": 305
  },
  "luminance": 0.09863
}

Semantic roles & 50–950 ramp

primary
#7C2FBA
secondary
#9EC97C
accent
#E3458B
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7C2FBA

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

Preview Lab → · Contrast checker → · Palette generator →

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