#7F2BCE#7F2BCE

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

Color values

HEX#7F2BCE
RGBrgb(127, 43, 206)
HSLhsl(271, 65%, 49%)
HSVhsv(271, 79%, 81%)
CMYKcmyk(38.3%, 79.1%, 0%, 19.2%)
CIE-LABlab(39.06, 63.74, -68.44)
CIE-LCHlch(39.06, 93.53, 312.97°)
OKLaboklab(50.38% 0.1206 -0.1955)
OKLCHoklch(50.38% 0.23 301.7)
XYZxyz(20.7541, 10.6959, 59.3517)
Luminance0.1070 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2BCE #7ACE2B
analogous
#2D2BCE #7F2BCE #CE2BCC
triadic
#7F2BCE #CE7F2B #2BCE7F
tetradic
#7F2BCE #CE2D2B #7ACE2B #2BCCCE
square
#7F2BCE #CE2D2B #7ACE2B #2BCCCE
split-complementary
#7F2BCE #CCCE2B #2BCE2D
monochromatic
#411669 #60209B #7F2BCE #9D5ADC #BB8CE7

Accessibility & contrast

On white

6.69
#7F2BCE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7F2BCE
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2BCE#FFFFFF#000000##FFFFFF
##7F2BCE1.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD2
Deuteranopia (green-blind)
#005BCB
Tritanopia (blue-blind)
#6D587D
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7f2bce;
/* rgb */ color: rgb(127, 43, 206);
/* oklch */ color: oklch(50.4% 0.230 301.7);
Tailwind
colors: {
  custom: {
    50: '#ab6fde',
    500: '#7f2bce',
    950: '#000000',
  },
}
SCSS
$custom: #7f2bce;
$custom-light: #ab6fde;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2bce",
  "rgb": {
    "r": 127,
    "g": 43,
    "b": 206
  },
  "hsl": {
    "h": 270.92,
    "s": 65.462,
    "l": 48.824
  },
  "oklch": {
    "l": 0.50382,
    "c": 0.2297,
    "h": 301.7
  },
  "luminance": 0.10696
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7F2BCE

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

Preview Lab → · Contrast checker → · Palette generator →

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