#7F2FCA#7F2FCA

#7F2FCA is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 50.4% C 0.222 H 302.3°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#7F2FCA
RGBrgb(127, 47, 202)
HSLhsl(271, 62%, 49%)
HSVhsv(271, 77%, 79%)
CMYKcmyk(37.1%, 76.7%, 0%, 20.8%)
CIE-LABlab(39.26, 61.32, -65.80)
CIE-LCHlch(39.26, 89.94, 312.98°)
OKLaboklab(50.42% 0.1185 -0.1878)
OKLCHoklch(50.42% 0.222 302.3)
XYZxyz(20.4270, 10.8093, 56.8759)
Luminance0.1081 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2FCA #7ACA2F
analogous
#322FCA #7F2FCA #CA2FC8
triadic
#7F2FCA #CA7F2F #2FCA7F
tetradic
#7F2FCA #CA322F #7ACA2F #2FC8CA
square
#7F2FCA #CA322F #7ACA2F #2FC8CA
split-complementary
#7F2FCA #C8CA2F #2FCA32
monochromatic
#411867 #602398 #7F2FCA #9D5DD9 #BB8FE5

Accessibility & contrast

On white

6.64
#7F2FCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#7F2FCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F2FCA
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2FCA#FFFFFF#000000##FFFFFF
##7F2FCA1.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCE
Deuteranopia (green-blind)
#005CC7
Tritanopia (blue-blind)
#6F587C
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7f2fca;
/* rgb */ color: rgb(127, 47, 202);
/* oklch */ color: oklch(50.4% 0.222 302.3);
Tailwind
colors: {
  custom: {
    50: '#ab70db',
    500: '#7f2fca',
    950: '#000000',
  },
}
SCSS
$custom: #7f2fca;
$custom-light: #ab70db;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2fca",
  "rgb": {
    "r": 127,
    "g": 47,
    "b": 202
  },
  "hsl": {
    "h": 270.968,
    "s": 62.249,
    "l": 48.824
  },
  "oklch": {
    "l": 0.50416,
    "c": 0.22205,
    "h": 302.3
  },
  "luminance": 0.10809
}

Semantic roles & 50–950 ramp

primary
#7F2FCA
secondary
#A9CF86
accent
#E54291
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7F2FCA

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

Preview Lab → · Contrast checker → · Palette generator →

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