#7F2CC8#7F2CC8

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

Color values

HEX#7F2CC8
RGBrgb(127, 44, 200)
HSLhsl(272, 64%, 48%)
HSVhsv(272, 78%, 78%)
CMYKcmyk(36.5%, 78%, 0%, 21.6%)
CIE-LABlab(38.70, 62.01, -65.55)
CIE-LCHlch(38.70, 90.23, 313.41°)
OKLaboklab(49.97% 0.1214 -0.187)
OKLCHoklch(49.97% 0.223 303)
XYZxyz(20.0759, 10.4835, 55.5982)
Luminance0.1048 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2CC8 #75C82C
analogous
#312CC8 #7F2CC8 #C82CC3
triadic
#7F2CC8 #C87F2C #2CC87F
tetradic
#7F2CC8 #C8312C #75C82C #2CC3C8
square
#7F2CC8 #C8312C #75C82C #2CC3C8
split-complementary
#7F2CC8 #C3C82C #2CC831
monochromatic
#3F1664 #5F2196 #7F2CC8 #9D57DA #BA89E5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F2CC8#FFFFFF#000000##FFFFFF
##7F2CC81.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)
#005BC5
Tritanopia (blue-blind)
#70567A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7f2cc8;
/* rgb */ color: rgb(127, 44, 200);
/* oklch */ color: oklch(50.0% 0.223 303.0);
Tailwind
colors: {
  custom: {
    50: '#ab6fda',
    500: '#7f2cc8',
    950: '#000000',
  },
}
SCSS
$custom: #7f2cc8;
$custom-light: #ab6fda;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2cc8",
  "rgb": {
    "r": 127,
    "g": 44,
    "b": 200
  },
  "hsl": {
    "h": 271.923,
    "s": 63.934,
    "l": 47.843
  },
  "oklch": {
    "l": 0.49974,
    "c": 0.223,
    "h": 303
  },
  "luminance": 0.10484
}

Semantic roles & 50–950 ramp

primary
#7F2CC8
secondary
#A5CF81
accent
#E7418F
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7F2CC8

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

Preview Lab → · Contrast checker → · Palette generator →

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