#7F2DCC#7F2DCC

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

Color values

HEX#7F2DCC
RGBrgb(127, 45, 204)
HSLhsl(271, 64%, 49%)
HSVhsv(271, 78%, 80%)
CMYKcmyk(37.7%, 77.9%, 0%, 20%)
CIE-LABlab(39.15, 62.55, -67.13)
CIE-LCHlch(39.15, 91.75, 312.98°)
OKLaboklab(50.39% 0.1196 -0.1917)
OKLCHoklch(50.39% 0.226 302)
XYZxyz(20.5872, 10.7483, 58.1051)
Luminance0.1075 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2DCC #7ACC2D
analogous
#2F2DCC #7F2DCC #CC2DCA
triadic
#7F2DCC #CC7F2D #2DCC7F
tetradic
#7F2DCC #CC2F2D #7ACC2D #2DCACC
square
#7F2DCC #CC2F2D #7ACC2D #2DCACC
split-complementary
#7F2DCC #CACC2D #2DCC2F
monochromatic
#411768 #60229A #7F2DCC #9D5BDB #BB8DE6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F2DCC#FFFFFF#000000##FFFFFF
##7F2DCC1.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)
#005BD0
Deuteranopia (green-blind)
#005BC9
Tritanopia (blue-blind)
#6E587C
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7f2dcc;
/* rgb */ color: rgb(127, 45, 204);
/* oklch */ color: oklch(50.4% 0.226 302.0);
Tailwind
colors: {
  custom: {
    50: '#ab70dd',
    500: '#7f2dcc',
    950: '#000000',
  },
}
SCSS
$custom: #7f2dcc;
$custom-light: #ab70dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2dcc",
  "rgb": {
    "r": 127,
    "g": 45,
    "b": 204
  },
  "hsl": {
    "h": 270.943,
    "s": 63.855,
    "l": 48.824
  },
  "oklch": {
    "l": 0.50394,
    "c": 0.22593,
    "h": 302
  },
  "luminance": 0.10748
}

Semantic roles & 50–950 ramp

primary
#7F2DCC
secondary
#A9D085
accent
#E74191
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7F2DCC

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

Preview Lab → · Contrast checker → · Palette generator →

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