#7C2FB9#7C2FB9

#7C2FB9 is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.7% C 0.205 H 305.3°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#7C2FB9
RGBrgb(124, 47, 185)
HSLhsl(273, 59%, 45%)
HSVhsv(273, 75%, 73%)
CMYKcmyk(33%, 74.6%, 0%, 27.5%)
CIE-LABlab(37.52, 56.89, -58.70)
CIE-LCHlch(37.52, 81.74, 314.10°)
OKLaboklab(48.69% 0.1182 -0.167)
OKLCHoklch(48.69% 0.205 305.3)
XYZxyz(18.0837, 9.8210, 46.8325)
Luminance0.0982 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2FB9 #6CB92F
analogous
#372FB9 #7C2FB9 #B92FB1
triadic
#7C2FB9 #B97C2F #2FB97C
tetradic
#7C2FB9 #B9372F #6CB92F #2FB1B9
square
#7C2FB9 #B9372F #6CB92F #2FB1B9
split-complementary
#7C2FB9 #B1B92F #2FB937
monochromatic
#3B1657 #5B2388 #7C2FB9 #9A52D3 #B783DF

Accessibility & contrast

On white

7.08
#7C2FB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#7C2FB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2FB9
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2FB9#FFFFFF#000000##FFFFFF
##7C2FB91.007.082.967.08
#FFFFFF7.081.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BD
Deuteranopia (green-blind)
#0058B6
Tritanopia (blue-blind)
#715172
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7c2fb9;
/* rgb */ color: rgb(124, 47, 185);
/* oklch */ color: oklch(48.7% 0.205 305.3);
Tailwind
colors: {
  custom: {
    50: '#a76fcf',
    500: '#7c2fb9',
    950: '#000000',
  },
}
SCSS
$custom: #7c2fb9;
$custom-light: #a76fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2fb9",
  "rgb": {
    "r": 124,
    "g": 47,
    "b": 185
  },
  "hsl": {
    "h": 273.478,
    "s": 59.483,
    "l": 45.49
  },
  "oklch": {
    "l": 0.48692,
    "c": 0.20459,
    "h": 305.3
  },
  "luminance": 0.09821
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7C2FB9

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

Preview Lab → · Contrast checker → · Palette generator →

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