#7F2DC1#7F2DC1

#7F2DC1 is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.5% C 0.215 H 304.6°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#7F2DC1
RGBrgb(127, 45, 193)
HSLhsl(273, 62%, 47%)
HSVhsv(273, 77%, 76%)
CMYKcmyk(34.2%, 76.7%, 0%, 24.3%)
CIE-LABlab(38.27, 60.04, -62.16)
CIE-LCHlch(38.27, 86.42, 314.01°)
OKLaboklab(49.5% 0.1223 -0.1771)
OKLCHoklch(49.5% 0.215 304.6)
XYZxyz(19.3142, 10.2391, 51.4006)
Luminance0.1024 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2DC1 #6FC12D
analogous
#352DC1 #7F2DC1 #C12DB9
triadic
#7F2DC1 #C17F2D #2DC17F
tetradic
#7F2DC1 #C1352D #6FC12D #2DB9C1
square
#7F2DC1 #C1352D #6FC12D #2DB9C1
split-complementary
#7F2DC1 #B9C12D #2DC135
monochromatic
#3E165E #5E218F #7F2DC1 #9D54D7 #B986E3

Accessibility & contrast

On white

6.89
#7F2DC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#7F2DC1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F2DC1
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2DC1#FFFFFF#000000##FFFFFF
##7F2DC11.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C5
Deuteranopia (green-blind)
#005ABE
Tritanopia (blue-blind)
#725376
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7f2dc1;
/* rgb */ color: rgb(127, 45, 193);
/* oklch */ color: oklch(49.5% 0.215 304.6);
Tailwind
colors: {
  custom: {
    50: '#aa6fd5',
    500: '#7f2dc1',
    950: '#000000',
  },
}
SCSS
$custom: #7f2dc1;
$custom-light: #aa6fd5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2dc1",
  "rgb": {
    "r": 127,
    "g": 45,
    "b": 193
  },
  "hsl": {
    "h": 273.243,
    "s": 62.185,
    "l": 46.667
  },
  "oklch": {
    "l": 0.495,
    "c": 0.21523,
    "h": 304.6
  },
  "luminance": 0.10239
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7F2DC1

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

Preview Lab → · Contrast checker → · Palette generator →

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