#7F3CCE#7F3CCE

#7F3CCE is a mid, highly saturated violet. Relative luminance 0.122; OKLCH L 52.1% C 0.212 H 300.0°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#7F3CCE
RGBrgb(127, 60, 206)
HSLhsl(268, 60%, 52%)
HSVhsv(268, 71%, 81%)
CMYKcmyk(38.3%, 70.9%, 0%, 19.2%)
CIE-LABlab(41.53, 56.70, -64.41)
CIE-LCHlch(41.53, 85.81, 311.36°)
OKLaboklab(52.12% 0.106 -0.1838)
OKLCHoklch(52.12% 0.212 300)
XYZxyz(21.5061, 12.1998, 59.6023)
Luminance0.1220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3CCE #8BCE3C
analogous
#3C42CE #7F3CCE #C83CCE
triadic
#7F3CCE #CE7F3C #3CCE7F
tetradic
#7F3CCE #CE3C42 #8BCE3C #3CCEC8
square
#7F3CCE #CE3C42 #8BCE3C #3CCEC8
split-complementary
#7F3CCE #CEC83C #42CE3C
monochromatic
#441D73 #6129A4 #7F3CCE #9F6DDA #BF9EE7

Accessibility & contrast

On white

6.10
#7F3CCE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#7F3CCE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3CCE
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3CCE#FFFFFF#000000##FFFFFF
##7F3CCE1.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D2
Deuteranopia (green-blind)
#0061CB
Tritanopia (blue-blind)
#6D6081
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7f3cce;
/* rgb */ color: rgb(127, 60, 206);
/* oklch */ color: oklch(52.1% 0.212 300.0);
Tailwind
colors: {
  custom: {
    50: '#aa77de',
    500: '#7f3cce',
    950: '#000000',
  },
}
SCSS
$custom: #7f3cce;
$custom-light: #aa77de;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3cce",
  "rgb": {
    "r": 127,
    "g": 60,
    "b": 206
  },
  "hsl": {
    "h": 267.534,
    "s": 59.836,
    "l": 52.157
  },
  "oklch": {
    "l": 0.52118,
    "c": 0.21214,
    "h": 300
  },
  "luminance": 0.122
}

Semantic roles & 50–950 ramp

primary
#7F3CCE
secondary
#B6D393
accent
#E3459A
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #7F3CCE

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

Preview Lab → · Contrast checker → · Palette generator →

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