#7F2BC8#7F2BC8

#7F2BC8 is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.9% C 0.224 H 303.1°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#7F2BC8
RGBrgb(127, 43, 200)
HSLhsl(272, 65%, 48%)
HSVhsv(272, 79%, 78%)
CMYKcmyk(36.5%, 78.5%, 0%, 21.6%)
CIE-LABlab(38.57, 62.38, -65.76)
CIE-LCHlch(38.57, 90.64, 313.49°)
OKLaboklab(49.88% 0.1222 -0.1876)
OKLCHoklch(49.88% 0.224 303.1)
XYZxyz(20.0391, 10.4099, 55.5860)
Luminance0.1041 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2BC8 #74C82B
analogous
#312BC8 #7F2BC8 #C82BC2
triadic
#7F2BC8 #C87F2B #2BC87F
tetradic
#7F2BC8 #C8312B #74C82B #2BC2C8
square
#7F2BC8 #C8312B #74C82B #2BC2C8
split-complementary
#7F2BC8 #C2C82B #2BC831
monochromatic
#3F1563 #5F2096 #7F2BC8 #9D56DB #BA88E5

Accessibility & contrast

On white

6.81
#7F2BC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#7F2BC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F2BC8
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2BC8#FFFFFF#000000##FFFFFF
##7F2BC81.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CC
Deuteranopia (green-blind)
#005AC5
Tritanopia (blue-blind)
#70557A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7f2bc8;
/* rgb */ color: rgb(127, 43, 200);
/* oklch */ color: oklch(49.9% 0.224 303.1);
Tailwind
colors: {
  custom: {
    50: '#ab6eda',
    500: '#7f2bc8',
    950: '#000000',
  },
}
SCSS
$custom: #7f2bc8;
$custom-light: #ab6eda;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2bc8",
  "rgb": {
    "r": 127,
    "g": 43,
    "b": 200
  },
  "hsl": {
    "h": 272.102,
    "s": 64.609,
    "l": 47.647
  },
  "oklch": {
    "l": 0.49884,
    "c": 0.22394,
    "h": 303.1
  },
  "luminance": 0.1041
}

Semantic roles & 50–950 ramp

primary
#7F2BC8
secondary
#A5CF80
accent
#E8408E
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7F2BC8

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

Preview Lab → · Contrast checker → · Palette generator →

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