#7F3CA8#7F3CA8

#7F3CA8 is a mid, vivid violet. Relative luminance 0.106; OKLCH L 49.3% C 0.171 H 310.1°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#7F3CA8
RGBrgb(127, 60, 168)
HSLhsl(277, 47%, 45%)
HSVhsv(277, 64%, 66%)
CMYKcmyk(24.4%, 64.3%, 0%, 34.1%)
CIE-LABlab(38.85, 47.68, -46.44)
CIE-LCHlch(38.85, 66.56, 315.75°)
OKLaboklab(49.35% 0.1105 -0.131)
OKLCHoklch(49.35% 0.171 310.1)
XYZxyz(17.4348, 10.5712, 38.1602)
Luminance0.1057 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3CA8 #65A83C
analogous
#493CA8 #7F3CA8 #A83C9B
triadic
#7F3CA8 #A87F3C #3CA87F
tetradic
#7F3CA8 #A8493C #65A83C #3C9BA8
square
#7F3CA8 #A8493C #65A83C #3C9BA8
split-complementary
#7F3CA8 #9BA83C #3CA849
monochromatic
#3B1C4E #5D2C7B #7F3CA8 #9D5CC5 #B889D5

Accessibility & contrast

On white

6.74
#7F3CA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#7F3CA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3CA8
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3CA8#FFFFFF#000000##FFFFFF
##7F3CA81.006.743.116.74
#FFFFFF6.741.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AB
Deuteranopia (green-blind)
#2E5DA6
Tritanopia (blue-blind)
#7A516C
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7f3ca8;
/* rgb */ color: rgb(127, 60, 168);
/* oklch */ color: oklch(49.3% 0.171 310.1);
Tailwind
colors: {
  custom: {
    50: '#a776c2',
    500: '#7f3ca8',
    950: '#000000',
  },
}
SCSS
$custom: #7f3ca8;
$custom-light: #a776c2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3ca8",
  "rgb": {
    "r": 127,
    "g": 60,
    "b": 168
  },
  "hsl": {
    "h": 277.222,
    "s": 47.368,
    "l": 44.706
  },
  "oklch": {
    "l": 0.49348,
    "c": 0.17134,
    "h": 310.1
  },
  "luminance": 0.10571
}

Semantic roles & 50–950 ramp

primary
#7F3CA8
secondary
#98BF80
accent
#D75184
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100912
muted
#7F7B81

Preview Lab

Preview with #7F3CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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