#7C2FC8#7C2FC8

#7C2FC8 is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 49.9% C 0.220 H 301.5°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#7C2FC8
RGBrgb(124, 47, 200)
HSLhsl(270, 62%, 48%)
HSVhsv(270, 77%, 78%)
CMYKcmyk(38%, 76.5%, 0%, 21.6%)
CIE-LABlab(38.70, 60.36, -65.56)
CIE-LCHlch(38.70, 89.11, 312.64°)
OKLaboklab(49.89% 0.1147 -0.1872)
OKLCHoklch(49.89% 0.22 301.5)
XYZxyz(19.7515, 10.4881, 55.6162)
Luminance0.1049 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2FC8 #7BC82F
analogous
#2F2FC8 #7C2FC8 #C82FC7
triadic
#7C2FC8 #C87C2F #2FC87C
tetradic
#7C2FC8 #C82F2F #7BC82F #2FC7C8
square
#7C2FC8 #C82F2F #7BC82F #2FC7C8
split-complementary
#7C2FC8 #C7C82F #2FC82F
monochromatic
#3F1865 #5D2396 #7C2FC8 #9B5CD9 #B98DE4

Accessibility & contrast

On white

6.78
#7C2FC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#7C2FC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C2FC8
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2FC8#FFFFFF#000000##FFFFFF
##7C2FC81.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACC
Deuteranopia (green-blind)
#005AC5
Tritanopia (blue-blind)
#6B577A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7c2fc8;
/* rgb */ color: rgb(124, 47, 200);
/* oklch */ color: oklch(49.9% 0.220 301.5);
Tailwind
colors: {
  custom: {
    50: '#a970da',
    500: '#7c2fc8',
    950: '#000000',
  },
}
SCSS
$custom: #7c2fc8;
$custom-light: #a970da;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2fc8",
  "rgb": {
    "r": 124,
    "g": 47,
    "b": 200
  },
  "hsl": {
    "h": 270.196,
    "s": 61.943,
    "l": 48.431
  },
  "oklch": {
    "l": 0.49894,
    "c": 0.21954,
    "h": 301.5
  },
  "luminance": 0.10488
}

Semantic roles & 50–950 ramp

primary
#7C2FC8
secondary
#A9CF84
accent
#E54393
background
#FAF7FD
surface
#F5EDFB
border
#CFC8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7C2FC8

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

Preview Lab → · Contrast checker → · Palette generator →

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