#7F2FCC#7F2FCC

#7F2FCC is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 50.6% C 0.224 H 301.8°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#7F2FCC
RGBrgb(127, 47, 204)
HSLhsl(271, 63%, 49%)
HSVhsv(271, 77%, 80%)
CMYKcmyk(37.7%, 77%, 0%, 20%)
CIE-LABlab(39.42, 61.78, -66.70)
CIE-LCHlch(39.42, 90.91, 312.81°)
OKLaboklab(50.58% 0.118 -0.1904)
OKLCHoklch(50.58% 0.224 301.8)
XYZxyz(20.6654, 10.9046, 58.1311)
Luminance0.1090 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2FCC #7CCC2F
analogous
#302FCC #7F2FCC #CC2FCB
triadic
#7F2FCC #CC7F2F #2FCC7F
tetradic
#7F2FCC #CC302F #7CCC2F #2FCBCC
square
#7F2FCC #CC302F #7CCC2F #2FCBCC
split-complementary
#7F2FCC #CBCC2F #2FCC30
monochromatic
#411869 #60249A #7F2FCC #9D5EDA #BC90E5

Accessibility & contrast

On white

6.60
#7F2FCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#7F2FCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F2FCC
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2FCC#FFFFFF#000000##FFFFFF
##7F2FCC1.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD0
Deuteranopia (green-blind)
#005CC9
Tritanopia (blue-blind)
#6E597D
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7f2fcc;
/* rgb */ color: rgb(127, 47, 204);
/* oklch */ color: oklch(50.6% 0.224 301.8);
Tailwind
colors: {
  custom: {
    50: '#ab70dd',
    500: '#7f2fcc',
    950: '#000000',
  },
}
SCSS
$custom: #7f2fcc;
$custom-light: #ab70dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2fcc",
  "rgb": {
    "r": 127,
    "g": 47,
    "b": 204
  },
  "hsl": {
    "h": 270.573,
    "s": 62.55,
    "l": 49.216
  },
  "oklch": {
    "l": 0.5058,
    "c": 0.22401,
    "h": 301.8
  },
  "luminance": 0.10905
}

Semantic roles & 50–950 ramp

primary
#7F2FCC
secondary
#ABD087
accent
#E64292
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7F2FCC

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

Preview Lab → · Contrast checker → · Palette generator →

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