#7F3CCC#7F3CCC

#7F3CCC is a mid, highly saturated violet. Relative luminance 0.121; OKLCH L 52.0% C 0.210 H 300.4°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#7F3CCC
RGBrgb(127, 60, 204)
HSLhsl(268, 59%, 52%)
HSVhsv(268, 71%, 80%)
CMYKcmyk(37.7%, 70.6%, 0%, 20%)
CIE-LABlab(41.38, 56.21, -63.50)
CIE-LCHlch(41.38, 84.81, 311.51°)
OKLaboklab(51.96% 0.1063 -0.1811)
OKLCHoklch(51.96% 0.21 300.4)
XYZxyz(21.2647, 12.1032, 58.3309)
Luminance0.1210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3CCC #89CC3C
analogous
#3C41CC #7F3CCC #C73CCC
triadic
#7F3CCC #CC7F3C #3CCC7F
tetradic
#7F3CCC #CC3C41 #89CC3C #3CCCC7
square
#7F3CCC #CC3C41 #89CC3C #3CCCC7
split-complementary
#7F3CCC #CCC73C #41CC3C
monochromatic
#441D70 #612AA1 #7F3CCC #9F6DD9 #BF9DE5

Accessibility & contrast

On white

6.14
#7F3CCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#7F3CCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3CCC
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3CCC#FFFFFF#000000##FFFFFF
##7F3CCC1.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D0
Deuteranopia (green-blind)
#0061C9
Tritanopia (blue-blind)
#6E5F80
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7f3ccc;
/* rgb */ color: rgb(127, 60, 204);
/* oklch */ color: oklch(52.0% 0.210 300.4);
Tailwind
colors: {
  custom: {
    50: '#aa77dc',
    500: '#7f3ccc',
    950: '#000000',
  },
}
SCSS
$custom: #7f3ccc;
$custom-light: #aa77dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3ccc",
  "rgb": {
    "r": 127,
    "g": 60,
    "b": 204
  },
  "hsl": {
    "h": 267.917,
    "s": 58.537,
    "l": 51.765
  },
  "oklch": {
    "l": 0.51962,
    "c": 0.21001,
    "h": 300.4
  },
  "luminance": 0.12103
}

Semantic roles & 50–950 ramp

primary
#7F3CCC
secondary
#B4D192
accent
#E24699
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #7F3CCC

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

Preview Lab → · Contrast checker → · Palette generator →

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