#7C2FFE#7C2FFE

#7C2FFE is a mid, highly saturated violet. Relative luminance 0.135; OKLCH L 54.6% C 0.273 H 291.1°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#7C2FFE
RGBrgb(124, 47, 254)
HSLhsl(262, 99%, 59%)
HSVhsv(262, 81%, 100%)
CMYKcmyk(51.2%, 81.5%, 0%, 0.4%)
CIE-LABlab(43.47, 73.22, -88.52)
CIE-LCHlch(43.47, 114.88, 309.60°)
OKLaboklab(54.65% 0.0983 -0.2545)
OKLCHoklch(54.65% 0.273 291.1)
XYZxyz(27.2130, 13.4727, 94.9133)
Luminance0.1347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2FFE #B1FE2F
analogous
#2F4AFE #7C2FFE #E42FFE
triadic
#7C2FFE #FE7C2F #2FFE7C
tetradic
#7C2FFE #FE2F4A #B1FE2F #2FFEE4
square
#7C2FFE #FE2F4A #B1FE2F #2FFEE4
split-complementary
#7C2FFE #FEE42F #4AFE2F
monochromatic
#4301B2 #5901EF #7C2FFE #A26CFE #C9A9FF

Accessibility & contrast

On white

5.68
#7C2FFE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#7C2FFE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C2FFE
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2FFE#FFFFFF#000000##FFFFFF
##7C2FFE1.005.683.695.68
#FFFFFF5.681.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AFF
Deuteranopia (green-blind)
#0062FA
Tritanopia (blue-blind)
#4D6E9A
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #7c2ffe;
/* rgb */ color: rgb(124, 47, 254);
/* oklch */ color: oklch(54.6% 0.273 291.1);
Tailwind
colors: {
  custom: {
    50: '#af73ff',
    500: '#7c2ffe',
    950: '#000000',
  },
}
SCSS
$custom: #7c2ffe;
$custom-light: #af73ff;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2ffe",
  "rgb": {
    "r": 124,
    "g": 47,
    "b": 254
  },
  "hsl": {
    "h": 262.319,
    "s": 99.043,
    "l": 59.02
  },
  "oklch": {
    "l": 0.54647,
    "c": 0.27282,
    "h": 291.1
  },
  "luminance": 0.13474
}

Semantic roles & 50–950 ramp

primary
#7C2FFE
secondary
#CFED9C
accent
#FF29AF
background
#FBF7FF
surface
#F6EDFF
border
#D0C8D7
text
#120918
muted
#817B86

Preview Lab

Preview with #7C2FFE

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

Preview Lab → · Contrast checker → · Palette generator →

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