#7F2DC2#7F2DC2

#7F2DC2 is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.6% C 0.216 H 304.4°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#7F2DC2
RGBrgb(127, 45, 194)
HSLhsl(273, 62%, 47%)
HSVhsv(273, 77%, 76%)
CMYKcmyk(34.5%, 76.8%, 0%, 23.9%)
CIE-LABlab(38.35, 60.27, -62.62)
CIE-LCHlch(38.35, 86.91, 313.90°)
OKLaboklab(49.58% 0.1221 -0.1784)
OKLCHoklch(49.58% 0.216 304.4)
XYZxyz(19.4261, 10.2839, 51.9901)
Luminance0.1028 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2DC2 #70C22D
analogous
#352DC2 #7F2DC2 #C22DBB
triadic
#7F2DC2 #C27F2D #2DC27F
tetradic
#7F2DC2 #C2352D #70C22D #2DBBC2
square
#7F2DC2 #C2352D #70C22D #2DBBC2
split-complementary
#7F2DC2 #BBC22D #2DC235
monochromatic
#3E165F #5E2190 #7F2DC2 #9D55D7 #B986E3

Accessibility & contrast

On white

6.87
#7F2DC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#7F2DC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F2DC2
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2DC2#FFFFFF#000000##FFFFFF
##7F2DC21.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C6
Deuteranopia (green-blind)
#005ABF
Tritanopia (blue-blind)
#725377
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7f2dc2;
/* rgb */ color: rgb(127, 45, 194);
/* oklch */ color: oklch(49.6% 0.216 304.4);
Tailwind
colors: {
  custom: {
    50: '#aa6fd5',
    500: '#7f2dc2',
    950: '#000000',
  },
}
SCSS
$custom: #7f2dc2;
$custom-light: #aa6fd5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2dc2",
  "rgb": {
    "r": 127,
    "g": 45,
    "b": 194
  },
  "hsl": {
    "h": 273.02,
    "s": 62.343,
    "l": 46.863
  },
  "oklch": {
    "l": 0.4958,
    "c": 0.21621,
    "h": 304.4
  },
  "luminance": 0.10284
}

Semantic roles & 50–950 ramp

primary
#7F2DC2
secondary
#A1CD7E
accent
#E5428C
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #7F2DC2

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

Preview Lab → · Contrast checker → · Palette generator →

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