#7F2CB3#7F2CB3

#7F2CB3 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.3% C 0.203 H 308.5°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#7F2CB3
RGBrgb(127, 44, 179)
HSLhsl(277, 61%, 44%)
HSVhsv(277, 75%, 70%)
CMYKcmyk(29.1%, 75.4%, 0%, 29.8%)
CIE-LABlab(37.06, 57.31, -55.88)
CIE-LCHlch(37.06, 80.04, 315.72°)
OKLaboklab(48.31% 0.1262 -0.1586)
OKLCHoklch(48.31% 0.203 308.5)
XYZxyz(17.7881, 9.5684, 43.5489)
Luminance0.0957 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2CB3 #60B32C
analogous
#3B2CB3 #7F2CB3 #B32CA3
triadic
#7F2CB3 #B37F2C #2CB37F
tetradic
#7F2CB3 #B33B2C #60B32C #2CA3B3
square
#7F2CB3 #B33B2C #60B32C #2CA3B3
split-complementary
#7F2CB3 #A3B32C #2CB33B
monochromatic
#391451 #5C2082 #7F2CB3 #9E4AD2 #B87BDF

Accessibility & contrast

On white

7.21
#7F2CB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#7F2CB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2CB3
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2CB3#FFFFFF#000000##FFFFFF
##7F2CB31.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B7
Deuteranopia (green-blind)
#0058B0
Tritanopia (blue-blind)
#774D6E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7f2cb3;
/* rgb */ color: rgb(127, 44, 179);
/* oklch */ color: oklch(48.3% 0.203 308.5);
Tailwind
colors: {
  custom: {
    50: '#a96ecb',
    500: '#7f2cb3',
    950: '#000000',
  },
}
SCSS
$custom: #7f2cb3;
$custom-light: #a96ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2cb3",
  "rgb": {
    "r": 127,
    "g": 44,
    "b": 179
  },
  "hsl": {
    "h": 276.889,
    "s": 60.538,
    "l": 43.725
  },
  "oklch": {
    "l": 0.48311,
    "c": 0.20272,
    "h": 308.5
  },
  "luminance": 0.09568
}

Semantic roles & 50–950 ramp

primary
#7F2CB3
secondary
#94C774
accent
#E44482
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F2CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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