#7F50CF#7F50CF

#7F50CF is a mid, vivid violet. Relative luminance 0.148; OKLCH L 54.8% C 0.188 H 296.8°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#7F50CF
RGBrgb(127, 80, 207)
HSLhsl(262, 57%, 56%)
HSVhsv(262, 61%, 81%)
CMYKcmyk(38.6%, 61.4%, 0%, 18.8%)
CIE-LABlab(45.30, 46.83, -58.89)
CIE-LCHlch(45.30, 75.24, 308.50°)
OKLaboklab(54.85% 0.0846 -0.1676)
OKLCHoklch(54.85% 0.188 296.8)
XYZxyz(22.8806, 14.7539, 60.6617)
Luminance0.1475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F50CF #A0CF50
analogous
#5061CF #7F50CF #BF50CF
triadic
#7F50CF #CF7F50 #50CF7F
tetradic
#7F50CF #CF5061 #A0CF50 #50CFBF
square
#7F50CF #CF5061 #A0CF50 #50CFBF
split-complementary
#7F50CF #CFBF50 #61CF50
monochromatic
#462381 #6031B1 #7F50CF #A280DC #C5B0E9

Accessibility & contrast

On white

5.32
#7F50CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#7F50CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F50CF
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F50CF#FFFFFF#000000##FFFFFF
##7F50CF1.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD3
Deuteranopia (green-blind)
#0F6ACC
Tritanopia (blue-blind)
#6C6C88
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7f50cf;
/* rgb */ color: rgb(127, 80, 207);
/* oklch */ color: oklch(54.8% 0.188 296.8);
Tailwind
colors: {
  custom: {
    50: '#a983de',
    500: '#7f50cf',
    950: '#000000',
  },
}
SCSS
$custom: #7f50cf;
$custom-light: #a983de;
$custom-dark: #000000;
JSON
{
  "hex": "#7f50cf",
  "rgb": {
    "r": 127,
    "g": 80,
    "b": 207
  },
  "hsl": {
    "h": 262.205,
    "s": 56.951,
    "l": 56.275
  },
  "oklch": {
    "l": 0.54846,
    "c": 0.18775,
    "h": 296.8
  },
  "luminance": 0.14754
}

Semantic roles & 50–950 ramp

primary
#7F50CF
secondary
#C4D8A3
accent
#E048A8
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7F50CF

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

Preview Lab → · Contrast checker → · Palette generator →

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