#7F2DC9#7F2DC9

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

Color values

HEX#7F2DC9
RGBrgb(127, 45, 201)
HSLhsl(272, 63%, 48%)
HSVhsv(272, 78%, 79%)
CMYKcmyk(36.8%, 77.6%, 0%, 21.2%)
CIE-LABlab(38.91, 61.86, -65.79)
CIE-LCHlch(38.91, 90.30, 313.24°)
OKLaboklab(50.15% 0.1204 -0.1877)
OKLCHoklch(50.15% 0.223 302.7)
XYZxyz(20.2309, 10.6058, 56.2283)
Luminance0.1061 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2DC9 #77C92D
analogous
#312DC9 #7F2DC9 #C92DC5
triadic
#7F2DC9 #C97F2D #2DC97F
tetradic
#7F2DC9 #C9312D #77C92D #2DC5C9
square
#7F2DC9 #C9312D #77C92D #2DC5C9
split-complementary
#7F2DC9 #C5C92D #2DC931
monochromatic
#401765 #5F2297 #7F2DC9 #9D59DA #BB8BE5

Accessibility & contrast

On white

6.73
#7F2DC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#7F2DC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F2DC9
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2DC9#FFFFFF#000000##FFFFFF
##7F2DC91.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACD
Deuteranopia (green-blind)
#005BC6
Tritanopia (blue-blind)
#6F567B
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7f2dc9;
/* rgb */ color: rgb(127, 45, 201);
/* oklch */ color: oklch(50.1% 0.223 302.7);
Tailwind
colors: {
  custom: {
    50: '#ab6fda',
    500: '#7f2dc9',
    950: '#000000',
  },
}
SCSS
$custom: #7f2dc9;
$custom-light: #ab6fda;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2dc9",
  "rgb": {
    "r": 127,
    "g": 45,
    "b": 201
  },
  "hsl": {
    "h": 271.538,
    "s": 63.415,
    "l": 48.235
  },
  "oklch": {
    "l": 0.50147,
    "c": 0.22301,
    "h": 302.7
  },
  "luminance": 0.10606
}

Semantic roles & 50–950 ramp

primary
#7F2DC9
secondary
#A7CF83
accent
#E64190
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7F2DC9

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

Preview Lab → · Contrast checker → · Palette generator →

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