#7F2DC0#7F2DC0

#7F2DC0 is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.4% C 0.214 H 304.9°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#7F2DC0
RGBrgb(127, 45, 192)
HSLhsl(273, 62%, 46%)
HSVhsv(273, 77%, 75%)
CMYKcmyk(33.9%, 76.6%, 0%, 24.7%)
CIE-LABlab(38.19, 59.82, -61.70)
CIE-LCHlch(38.19, 85.94, 314.11°)
OKLaboklab(49.42% 0.1226 -0.1757)
OKLCHoklch(49.42% 0.214 304.9)
XYZxyz(19.2031, 10.1947, 50.8151)
Luminance0.1019 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2DC0 #6EC02D
analogous
#352DC0 #7F2DC0 #C02DB8
triadic
#7F2DC0 #C07F2D #2DC07F
tetradic
#7F2DC0 #C0352D #6EC02D #2DB8C0
square
#7F2DC0 #C0352D #6EC02D #2DB8C0
split-complementary
#7F2DC0 #B8C02D #2DC035
monochromatic
#3D165D #5E218E #7F2DC0 #9D53D7 #B985E2

Accessibility & contrast

On white

6.91
#7F2DC0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#7F2DC0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F2DC0
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2DC0#FFFFFF#000000##FFFFFF
##7F2DC01.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C4
Deuteranopia (green-blind)
#005ABD
Tritanopia (blue-blind)
#735375
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7f2dc0;
/* rgb */ color: rgb(127, 45, 192);
/* oklch */ color: oklch(49.4% 0.214 304.9);
Tailwind
colors: {
  custom: {
    50: '#aa6fd4',
    500: '#7f2dc0',
    950: '#000000',
  },
}
SCSS
$custom: #7f2dc0;
$custom-light: #aa6fd4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2dc0",
  "rgb": {
    "r": 127,
    "g": 45,
    "b": 192
  },
  "hsl": {
    "h": 273.469,
    "s": 62.025,
    "l": 46.471
  },
  "oklch": {
    "l": 0.4942,
    "c": 0.21427,
    "h": 304.9
  },
  "luminance": 0.10195
}

Semantic roles & 50–950 ramp

primary
#7F2DC0
secondary
#A0CC7D
accent
#E5438B
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #7F2DC0

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

Preview Lab → · Contrast checker → · Palette generator →

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