#7F3CA9#7F3CA9

#7F3CA9 is a mid, vivid violet. Relative luminance 0.106; OKLCH L 49.4% C 0.172 H 309.8°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#7F3CA9
RGBrgb(127, 60, 169)
HSLhsl(277, 48%, 45%)
HSVhsv(277, 64%, 66%)
CMYKcmyk(24.9%, 64.5%, 0%, 33.7%)
CIE-LABlab(38.91, 47.91, -46.93)
CIE-LCHlch(38.91, 67.07, 315.59°)
OKLaboklab(49.42% 0.1104 -0.1324)
OKLCHoklch(49.42% 0.172 309.8)
XYZxyz(17.5283, 10.6087, 38.6527)
Luminance0.1061 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3CA9 #66A93C
analogous
#493CA9 #7F3CA9 #A93C9C
triadic
#7F3CA9 #A97F3C #3CA97F
tetradic
#7F3CA9 #A9493C #66A93C #3C9CA9
square
#7F3CA9 #A9493C #66A93C #3C9CA9
split-complementary
#7F3CA9 #9CA93C #3CA949
monochromatic
#3B1C4F #5D2C7C #7F3CA9 #9D5DC5 #B88AD5

Accessibility & contrast

On white

6.73
#7F3CA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#7F3CA9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3CA9
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3CA9#FFFFFF#000000##FFFFFF
##7F3CA91.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059AC
Deuteranopia (green-blind)
#2D5DA6
Tritanopia (blue-blind)
#79526D
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7f3ca9;
/* rgb */ color: rgb(127, 60, 169);
/* oklch */ color: oklch(49.4% 0.172 309.8);
Tailwind
colors: {
  custom: {
    50: '#a876c3',
    500: '#7f3ca9',
    950: '#000000',
  },
}
SCSS
$custom: #7f3ca9;
$custom-light: #a876c3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3ca9",
  "rgb": {
    "r": 127,
    "g": 60,
    "b": 169
  },
  "hsl": {
    "h": 276.881,
    "s": 47.598,
    "l": 44.902
  },
  "oklch": {
    "l": 0.49416,
    "c": 0.17243,
    "h": 309.8
  },
  "luminance": 0.10608
}

Semantic roles & 50–950 ramp

primary
#7F3CA9
secondary
#99C081
accent
#D75184
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100912
muted
#7F7B81

Preview Lab

Preview with #7F3CA9

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

Preview Lab → · Contrast checker → · Palette generator →

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