#7F2CB5#7F2CB5

#7F2CB5 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.5% C 0.205 H 307.9°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#7F2CB5
RGBrgb(127, 44, 181)
HSLhsl(276, 61%, 44%)
HSVhsv(276, 76%, 71%)
CMYKcmyk(29.8%, 75.7%, 0%, 29%)
CIE-LABlab(37.21, 57.75, -56.82)
CIE-LCHlch(37.21, 81.02, 315.46°)
OKLaboklab(48.46% 0.1258 -0.1614)
OKLCHoklch(48.46% 0.205 307.9)
XYZxyz(17.9918, 9.6499, 44.6219)
Luminance0.0965 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2CB5 #62B52C
analogous
#3A2CB5 #7F2CB5 #B52CA7
triadic
#7F2CB5 #B57F2C #2CB57F
tetradic
#7F2CB5 #B53A2C #62B52C #2CA7B5
square
#7F2CB5 #B53A2C #62B52C #2CA7B5
split-complementary
#7F2CB5 #A7B52C #2CB53A
monochromatic
#3A1453 #5C2084 #7F2CB5 #9E4BD3 #B87CDF

Accessibility & contrast

On white

7.17
#7F2CB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#7F2CB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2CB5
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2CB5#FFFFFF#000000##FFFFFF
##7F2CB51.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B9
Deuteranopia (green-blind)
#0058B2
Tritanopia (blue-blind)
#764D6F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7f2cb5;
/* rgb */ color: rgb(127, 44, 181);
/* oklch */ color: oklch(48.5% 0.205 307.9);
Tailwind
colors: {
  custom: {
    50: '#a96ecc',
    500: '#7f2cb5',
    950: '#000000',
  },
}
SCSS
$custom: #7f2cb5;
$custom-light: #a96ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2cb5",
  "rgb": {
    "r": 127,
    "g": 44,
    "b": 181
  },
  "hsl": {
    "h": 276.35,
    "s": 60.889,
    "l": 44.118
  },
  "oklch": {
    "l": 0.48464,
    "c": 0.20464,
    "h": 307.9
  },
  "luminance": 0.0965
}

Semantic roles & 50–950 ramp

primary
#7F2CB5
secondary
#96C875
accent
#E44483
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F2CB5

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

Preview Lab → · Contrast checker → · Palette generator →

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