#7C2ECF#7C2ECF

#7C2ECF is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 50.4% C 0.227 H 300.0°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#7C2ECF
RGBrgb(124, 46, 207)
HSLhsl(269, 64%, 50%)
HSVhsv(269, 78%, 81%)
CMYKcmyk(40.1%, 77.8%, 0%, 18.8%)
CIE-LABlab(39.15, 62.39, -68.90)
CIE-LCHlch(39.15, 92.95, 312.16°)
OKLaboklab(50.38% 0.1137 -0.197)
OKLCHoklch(50.38% 0.227 300)
XYZxyz(20.5488, 10.7438, 60.0105)
Luminance0.1074 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2ECF #81CF2E
analogous
#2E31CF #7C2ECF #CC2ECF
triadic
#7C2ECF #CF7C2E #2ECF7C
tetradic
#7C2ECF #CF2E31 #81CF2E #2ECFCC
square
#7C2ECF #CF2E31 #81CF2E #2ECFCC
split-complementary
#7C2ECF #CFCC2E #31CF2E
monochromatic
#40186B #5E239D #7C2ECF #9B5FDB #BA91E7

Accessibility & contrast

On white

6.67
#7C2ECF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#7C2ECF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C2ECF
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2ECF#FFFFFF#000000##FFFFFF
##7C2ECF1.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD3
Deuteranopia (green-blind)
#005BCC
Tritanopia (blue-blind)
#685A7E
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7c2ecf;
/* rgb */ color: rgb(124, 46, 207);
/* oklch */ color: oklch(50.4% 0.227 300.0);
Tailwind
colors: {
  custom: {
    50: '#a970df',
    500: '#7c2ecf',
    950: '#000000',
  },
}
SCSS
$custom: #7c2ecf;
$custom-light: #a970df;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2ecf",
  "rgb": {
    "r": 124,
    "g": 46,
    "b": 207
  },
  "hsl": {
    "h": 269.068,
    "s": 63.636,
    "l": 49.608
  },
  "oklch": {
    "l": 0.50381,
    "c": 0.22744,
    "h": 300
  },
  "luminance": 0.10744
}

Semantic roles & 50–950 ramp

primary
#7C2ECF
secondary
#AED188
accent
#E74196
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7C2ECF

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

Preview Lab → · Contrast checker → · Palette generator →

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