#7F2DC8#7F2DC8

#7F2DC8 is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 50.1% C 0.222 H 302.9°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#7F2DC8
RGBrgb(127, 45, 200)
HSLhsl(272, 63%, 48%)
HSVhsv(272, 78%, 78%)
CMYKcmyk(36.5%, 77.5%, 0%, 21.6%)
CIE-LABlab(38.83, 61.63, -65.34)
CIE-LCHlch(38.83, 89.82, 313.33°)
OKLaboklab(50.07% 0.1206 -0.1864)
OKLCHoklch(50.07% 0.222 302.9)
XYZxyz(20.1136, 10.5589, 55.6108)
Luminance0.1056 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2DC8 #76C82D
analogous
#322DC8 #7F2DC8 #C82DC3
triadic
#7F2DC8 #C87F2D #2DC87F
tetradic
#7F2DC8 #C8322D #76C82D #2DC3C8
square
#7F2DC8 #C8322D #76C82D #2DC3C8
split-complementary
#7F2DC8 #C3C82D #2DC832
monochromatic
#401764 #5F2296 #7F2DC8 #9D59DA #BA8BE5

Accessibility & contrast

On white

6.75
#7F2DC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#7F2DC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F2DC8
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2DC8#FFFFFF#000000##FFFFFF
##7F2DC81.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.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: #7f2dc8;
/* rgb */ color: rgb(127, 45, 200);
/* oklch */ color: oklch(50.1% 0.222 302.9);
Tailwind
colors: {
  custom: {
    50: '#ab6fda',
    500: '#7f2dc8',
    950: '#000000',
  },
}
SCSS
$custom: #7f2dc8;
$custom-light: #ab6fda;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2dc8",
  "rgb": {
    "r": 127,
    "g": 45,
    "b": 200
  },
  "hsl": {
    "h": 271.742,
    "s": 63.265,
    "l": 48.039
  },
  "oklch": {
    "l": 0.50065,
    "c": 0.22205,
    "h": 302.9
  },
  "luminance": 0.10559
}

Semantic roles & 50–950 ramp

primary
#7F2DC8
secondary
#A6CF82
accent
#E6418F
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7F2DC8

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

Preview Lab → · Contrast checker → · Palette generator →

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