#7F3CCA#7F3CCA

#7F3CCA is a mid, highly saturated violet. Relative luminance 0.120; OKLCH L 51.8% C 0.208 H 300.9°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#7F3CCA
RGBrgb(127, 60, 202)
HSLhsl(268, 57%, 51%)
HSVhsv(268, 70%, 79%)
CMYKcmyk(37.1%, 70.3%, 0%, 20.8%)
CIE-LABlab(41.23, 55.72, -62.59)
CIE-LCHlch(41.23, 83.80, 311.68°)
OKLaboklab(51.81% 0.1067 -0.1784)
OKLCHoklch(51.81% 0.208 300.9)
XYZxyz(21.0263, 12.0079, 57.0757)
Luminance0.1201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3CCA #87CA3C
analogous
#3C40CA #7F3CCA #C63CCA
triadic
#7F3CCA #CA7F3C #3CCA7F
tetradic
#7F3CCA #CA3C40 #87CA3C #3CCAC6
square
#7F3CCA #CA3C40 #87CA3C #3CCAC6
split-complementary
#7F3CCA #CAC63C #40CA3C
monochromatic
#441E6E #612B9E #7F3CCA #9F6CD7 #BE9CE4

Accessibility & contrast

On white

6.17
#7F3CCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#7F3CCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3CCA
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3CCA#FFFFFF#000000##FFFFFF
##7F3CCA1.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CE
Deuteranopia (green-blind)
#0060C7
Tritanopia (blue-blind)
#6E5E7F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7f3cca;
/* rgb */ color: rgb(127, 60, 202);
/* oklch */ color: oklch(51.8% 0.208 300.9);
Tailwind
colors: {
  custom: {
    50: '#aa77db',
    500: '#7f3cca',
    950: '#000000',
  },
}
SCSS
$custom: #7f3cca;
$custom-light: #aa77db;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3cca",
  "rgb": {
    "r": 127,
    "g": 60,
    "b": 202
  },
  "hsl": {
    "h": 268.31,
    "s": 57.258,
    "l": 51.373
  },
  "oklch": {
    "l": 0.51808,
    "c": 0.20789,
    "h": 300.9
  },
  "luminance": 0.12008
}

Semantic roles & 50–950 ramp

primary
#7F3CCA
secondary
#B3D092
accent
#E14798
background
#FAF7FD
surface
#F5EDFB
border
#CFC8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #7F3CCA

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

Preview Lab → · Contrast checker → · Palette generator →

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