#7F2CCD#7F2CCD

#7F2CCD is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 50.4% C 0.228 H 301.8°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#7F2CCD
RGBrgb(127, 44, 205)
HSLhsl(271, 65%, 49%)
HSVhsv(271, 79%, 80%)
CMYKcmyk(38%, 78.5%, 0%, 19.6%)
CIE-LABlab(39.11, 63.15, -67.79)
CIE-LCHlch(39.11, 92.65, 312.97°)
OKLaboklab(50.39% 0.1201 -0.1936)
OKLCHoklch(50.39% 0.228 301.8)
XYZxyz(20.6698, 10.7211, 58.7262)
Luminance0.1072 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2CCD #7ACD2C
analogous
#2F2CCD #7F2CCD #CD2CCB
triadic
#7F2CCD #CD7F2C #2CCD7F
tetradic
#7F2CCD #CD2F2C #7ACD2C #2CCBCD
square
#7F2CCD #CD2F2C #7ACD2C #2CCBCD
split-complementary
#7F2CCD #CBCD2C #2CCD2F
monochromatic
#411668 #60219B #7F2CCD #9D5BDC #BB8DE7

Accessibility & contrast

On white

6.68
#7F2CCD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#7F2CCD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F2CCD
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2CCD#FFFFFF#000000##FFFFFF
##7F2CCD1.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD1
Deuteranopia (green-blind)
#005BCA
Tritanopia (blue-blind)
#6E587D
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7f2ccd;
/* rgb */ color: rgb(127, 44, 205);
/* oklch */ color: oklch(50.4% 0.228 301.8);
Tailwind
colors: {
  custom: {
    50: '#ab6fdd',
    500: '#7f2ccd',
    950: '#000000',
  },
}
SCSS
$custom: #7f2ccd;
$custom-light: #ab6fdd;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2ccd",
  "rgb": {
    "r": 127,
    "g": 44,
    "b": 205
  },
  "hsl": {
    "h": 270.932,
    "s": 64.659,
    "l": 48.824
  },
  "oklch": {
    "l": 0.50387,
    "c": 0.22783,
    "h": 301.8
  },
  "luminance": 0.10721
}

Semantic roles & 50–950 ramp

primary
#7F2CCD
secondary
#A9D184
accent
#E84091
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7F2CCD

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

Preview Lab → · Contrast checker → · Palette generator →

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