#7F2CB2#7F2CB2

#7F2CB2 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.2% C 0.202 H 308.8°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#7F2CB2
RGBrgb(127, 44, 178)
HSLhsl(277, 60%, 44%)
HSVhsv(277, 75%, 70%)
CMYKcmyk(28.7%, 75.3%, 0%, 30.2%)
CIE-LABlab(36.98, 57.09, -55.41)
CIE-LCHlch(36.98, 79.56, 315.86°)
OKLaboklab(48.24% 0.1264 -0.1572)
OKLCHoklch(48.24% 0.202 308.8)
XYZxyz(17.6873, 9.5281, 43.0182)
Luminance0.0953 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2CB2 #5FB22C
analogous
#3C2CB2 #7F2CB2 #B22CA2
triadic
#7F2CB2 #B27F2C #2CB27F
tetradic
#7F2CB2 #B23C2C #5FB22C #2CA2B2
square
#7F2CB2 #B23C2C #5FB22C #2CA2B2
split-complementary
#7F2CB2 #A2B22C #2CB23C
monochromatic
#391450 #5C2081 #7F2CB2 #9E49D2 #B87ADE

Accessibility & contrast

On white

7.23
#7F2CB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F2CB2
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2CB2#FFFFFF#000000##FFFFFF
##7F2CB21.007.232.917.23
#FFFFFF7.231.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#0058AF
Tritanopia (blue-blind)
#774C6D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7f2cb2;
/* rgb */ color: rgb(127, 44, 178);
/* oklch */ color: oklch(48.2% 0.202 308.8);
Tailwind
colors: {
  custom: {
    50: '#a96eca',
    500: '#7f2cb2',
    950: '#000000',
  },
}
SCSS
$custom: #7f2cb2;
$custom-light: #a96eca;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2cb2",
  "rgb": {
    "r": 127,
    "g": 44,
    "b": 178
  },
  "hsl": {
    "h": 277.164,
    "s": 60.36,
    "l": 43.529
  },
  "oklch": {
    "l": 0.48235,
    "c": 0.20176,
    "h": 308.8
  },
  "luminance": 0.09528
}

Semantic roles & 50–950 ramp

primary
#7F2CB2
secondary
#93C673
accent
#E44481
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F2CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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