#7F2CB4#7F2CB4

#7F2CB4 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.4% C 0.204 H 308.2°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#7F2CB4
RGBrgb(127, 44, 180)
HSLhsl(277, 61%, 44%)
HSVhsv(277, 76%, 71%)
CMYKcmyk(29.4%, 75.6%, 0%, 29.4%)
CIE-LABlab(37.13, 57.53, -56.35)
CIE-LCHlch(37.13, 80.53, 315.59°)
OKLaboklab(48.39% 0.126 -0.16)
OKLCHoklch(48.39% 0.204 308.2)
XYZxyz(17.8896, 9.6090, 44.0835)
Luminance0.0961 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2CB4 #61B42C
analogous
#3B2CB4 #7F2CB4 #B42CA5
triadic
#7F2CB4 #B47F2C #2CB47F
tetradic
#7F2CB4 #B43B2C #61B42C #2CA5B4
square
#7F2CB4 #B43B2C #61B42C #2CA5B4
split-complementary
#7F2CB4 #A5B42C #2CB43B
monochromatic
#3A1452 #5C2083 #7F2CB4 #9E4AD3 #B87CDF

Accessibility & contrast

On white

7.19
#7F2CB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#7F2CB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2CB4
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2CB4#FFFFFF#000000##FFFFFF
##7F2CB41.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f2cb4;
/* rgb */ color: rgb(127, 44, 180);
/* oklch */ color: oklch(48.4% 0.204 308.2);
Tailwind
colors: {
  custom: {
    50: '#a96ecb',
    500: '#7f2cb4',
    950: '#000000',
  },
}
SCSS
$custom: #7f2cb4;
$custom-light: #a96ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2cb4",
  "rgb": {
    "r": 127,
    "g": 44,
    "b": 180
  },
  "hsl": {
    "h": 276.618,
    "s": 60.714,
    "l": 43.922
  },
  "oklch": {
    "l": 0.48387,
    "c": 0.20368,
    "h": 308.2
  },
  "luminance": 0.09609
}

Semantic roles & 50–950 ramp

primary
#7F2CB4
secondary
#95C775
accent
#E44482
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F2CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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