#7F2CBE#7F2CBE

#7F2CBE is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 49.2% C 0.213 H 305.5°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#7F2CBE
RGBrgb(127, 44, 190)
HSLhsl(274, 62%, 46%)
HSVhsv(274, 77%, 75%)
CMYKcmyk(33.2%, 76.8%, 0%, 25.5%)
CIE-LABlab(37.90, 59.75, -61.00)
CIE-LCHlch(37.90, 85.39, 314.41°)
OKLaboklab(49.17% 0.1239 -0.1737)
OKLCHoklch(49.17% 0.213 305.5)
XYZxyz(18.9453, 10.0312, 49.6434)
Luminance0.1003 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2CBE #6BBE2C
analogous
#362CBE #7F2CBE #BE2CB4
triadic
#7F2CBE #BE7F2C #2CBE7F
tetradic
#7F2CBE #BE362C #6BBE2C #2CB4BE
square
#7F2CBE #BE362C #6BBE2C #2CB4BE
split-complementary
#7F2CBE #B4BE2C #2CBE36
monochromatic
#3D155B #5E208C #7F2CBE #9D51D7 #B982E2

Accessibility & contrast

On white

6.99
#7F2CBE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#7F2CBE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F2CBE
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2CBE#FFFFFF#000000##FFFFFF
##7F2CBE1.006.993.016.99
#FFFFFF6.991.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C2
Deuteranopia (green-blind)
#0059BB
Tritanopia (blue-blind)
#735174
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7f2cbe;
/* rgb */ color: rgb(127, 44, 190);
/* oklch */ color: oklch(49.2% 0.213 305.5);
Tailwind
colors: {
  custom: {
    50: '#aa6ed3',
    500: '#7f2cbe',
    950: '#000000',
  },
}
SCSS
$custom: #7f2cbe;
$custom-light: #aa6ed3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2cbe",
  "rgb": {
    "r": 127,
    "g": 44,
    "b": 190
  },
  "hsl": {
    "h": 274.11,
    "s": 62.393,
    "l": 45.882
  },
  "oklch": {
    "l": 0.49167,
    "c": 0.21334,
    "h": 305.5
  },
  "luminance": 0.10031
}

Semantic roles & 50–950 ramp

primary
#7F2CBE
secondary
#9DCB7B
accent
#E54289
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #7F2CBE

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

Preview Lab → · Contrast checker → · Palette generator →

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