#7F2CBA#7F2CBA

#7F2CBA is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.9% C 0.209 H 306.6°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#7F2CBA
RGBrgb(127, 44, 186)
HSLhsl(275, 62%, 45%)
HSVhsv(275, 76%, 73%)
CMYKcmyk(31.7%, 76.3%, 0%, 27.1%)
CIE-LABlab(37.59, 58.86, -59.16)
CIE-LCHlch(37.59, 83.45, 314.86°)
OKLaboklab(48.85% 0.1248 -0.1682)
OKLCHoklch(48.85% 0.209 306.6)
XYZxyz(18.5141, 9.8588, 47.3724)
Luminance0.0986 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2CBA #67BA2C
analogous
#382CBA #7F2CBA #BA2CAE
triadic
#7F2CBA #BA7F2C #2CBA7F
tetradic
#7F2CBA #BA382C #67BA2C #2CAEBA
square
#7F2CBA #BA382C #67BA2C #2CAEBA
split-complementary
#7F2CBA #AEBA2C #2CBA38
monochromatic
#3B1557 #5D2089 #7F2CBA #9D4ED5 #B880E1

Accessibility & contrast

On white

7.07
#7F2CBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#7F2CBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2CBA
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2CBA#FFFFFF#000000##FFFFFF
##7F2CBA1.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BE
Deuteranopia (green-blind)
#0059B7
Tritanopia (blue-blind)
#755072
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7f2cba;
/* rgb */ color: rgb(127, 44, 186);
/* oklch */ color: oklch(48.9% 0.209 306.6);
Tailwind
colors: {
  custom: {
    50: '#aa6ed0',
    500: '#7f2cba',
    950: '#000000',
  },
}
SCSS
$custom: #7f2cba;
$custom-light: #aa6ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2cba",
  "rgb": {
    "r": 127,
    "g": 44,
    "b": 186
  },
  "hsl": {
    "h": 275.07,
    "s": 61.739,
    "l": 45.098
  },
  "oklch": {
    "l": 0.48852,
    "c": 0.20947,
    "h": 306.6
  },
  "luminance": 0.09859
}

Semantic roles & 50–950 ramp

primary
#7F2CBA
secondary
#9ACA78
accent
#E54386
background
#FAF7FC
surface
#F5EDF9
border
#CFC8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #7F2CBA

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

Preview Lab → · Contrast checker → · Palette generator →

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