#7F2CB7#7F2CB7

#7F2CB7 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.6% C 0.207 H 307.4°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#7F2CB7
RGBrgb(127, 44, 183)
HSLhsl(276, 61%, 45%)
HSVhsv(276, 76%, 72%)
CMYKcmyk(30.6%, 76%, 0%, 28.2%)
CIE-LABlab(37.36, 58.19, -57.76)
CIE-LCHlch(37.36, 81.99, 315.21°)
OKLaboklab(48.62% 0.1254 -0.1641)
OKLCHoklch(48.62% 0.207 307.4)
XYZxyz(18.1985, 9.7325, 45.7104)
Luminance0.0973 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2CB7 #64B72C
analogous
#392CB7 #7F2CB7 #B72CAA
triadic
#7F2CB7 #B77F2C #2CB77F
tetradic
#7F2CB7 #B7392C #64B72C #2CAAB7
square
#7F2CB7 #B7392C #64B72C #2CAAB7
split-complementary
#7F2CB7 #AAB72C #2CB739
monochromatic
#3B1454 #5D2086 #7F2CB7 #9D4CD4 #B87EE0

Accessibility & contrast

On white

7.13
#7F2CB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#7F2CB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2CB7
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2CB7#FFFFFF#000000##FFFFFF
##7F2CB71.007.132.957.13
#FFFFFF7.131.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BB
Deuteranopia (green-blind)
#0059B4
Tritanopia (blue-blind)
#764E70
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7f2cb7;
/* rgb */ color: rgb(127, 44, 183);
/* oklch */ color: oklch(48.6% 0.207 307.4);
Tailwind
colors: {
  custom: {
    50: '#a96ecd',
    500: '#7f2cb7',
    950: '#000000',
  },
}
SCSS
$custom: #7f2cb7;
$custom-light: #a96ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2cb7",
  "rgb": {
    "r": 127,
    "g": 44,
    "b": 183
  },
  "hsl": {
    "h": 275.827,
    "s": 61.233,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48618,
    "c": 0.20658,
    "h": 307.4
  },
  "luminance": 0.09732
}

Semantic roles & 50–950 ramp

primary
#7F2CB7
secondary
#97C876
accent
#E44384
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7F2CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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