#7F2DD2#7F2DD2

#7F2DD2 is a mid, highly saturated violet. Relative luminance 0.110; OKLCH L 50.9% C 0.232 H 300.6°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#7F2DD2
RGBrgb(127, 45, 210)
HSLhsl(270, 65%, 50%)
HSVhsv(270, 79%, 82%)
CMYKcmyk(39.5%, 78.6%, 0%, 17.6%)
CIE-LABlab(39.65, 63.93, -69.79)
CIE-LCHlch(39.65, 94.65, 312.49°)
OKLaboklab(50.89% 0.1179 -0.1995)
OKLCHoklch(50.89% 0.232 300.6)
XYZxyz(21.3207, 11.0418, 61.9683)
Luminance0.1104 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2DD2 #80D22D
analogous
#2D2ED2 #7F2DD2 #D12DD2
triadic
#7F2DD2 #D27F2D #2DD27F
tetradic
#7F2DD2 #D22D2E #80D22D #2DD2D1
square
#7F2DD2 #D22D2E #80D22D #2DD2D1
split-complementary
#7F2DD2 #D2D12D #2ED22D
monochromatic
#42176D #6122A0 #7F2DD2 #9E5FDD #BC92E8

Accessibility & contrast

On white

6.55
#7F2DD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#7F2DD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F2DD2
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2DD2#FFFFFF#000000##FFFFFF
##7F2DD21.006.553.216.55
#FFFFFF6.551.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD6
Deuteranopia (green-blind)
#005CCF
Tritanopia (blue-blind)
#6C5A80
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7f2dd2;
/* rgb */ color: rgb(127, 45, 210);
/* oklch */ color: oklch(50.9% 0.232 300.6);
Tailwind
colors: {
  custom: {
    50: '#ac70e1',
    500: '#7f2dd2',
    950: '#000000',
  },
}
SCSS
$custom: #7f2dd2;
$custom-light: #ac70e1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2dd2",
  "rgb": {
    "r": 127,
    "g": 45,
    "b": 210
  },
  "hsl": {
    "h": 269.818,
    "s": 64.706,
    "l": 50
  },
  "oklch": {
    "l": 0.50894,
    "c": 0.23175,
    "h": 300.6
  },
  "luminance": 0.11042
}

Semantic roles & 50–950 ramp

primary
#7F2DD2
secondary
#AED288
accent
#E84094
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7F2DD2

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

Preview Lab → · Contrast checker → · Palette generator →

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