#7F3FA5#7F3FA5

#7F3FA5 is a mid, vivid violet. Relative luminance 0.108; OKLCH L 49.6% C 0.164 H 310.7°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#7F3FA5
RGBrgb(127, 63, 165)
HSLhsl(278, 45%, 45%)
HSVhsv(278, 62%, 65%)
CMYKcmyk(23%, 61.8%, 0%, 35.3%)
CIE-LABlab(39.21, 45.48, -44.06)
CIE-LCHlch(39.21, 63.32, 315.90°)
OKLaboklab(49.55% 0.1068 -0.124)
OKLCHoklch(49.55% 0.164 310.7)
XYZxyz(17.3202, 10.7840, 36.7591)
Luminance0.1078 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3FA5 #65A53F
analogous
#4C3FA5 #7F3FA5 #A53F98
triadic
#7F3FA5 #A57F3F #3FA57F
tetradic
#7F3FA5 #A54C3F #65A53F #3F98A5
square
#7F3FA5 #A54C3F #65A53F #3F98A5
split-complementary
#7F3FA5 #98A53F #3FA54C
monochromatic
#3B1D4C #5D2E79 #7F3FA5 #9D5FC2 #B88CD3

Accessibility & contrast

On white

6.65
#7F3FA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#7F3FA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3FA5
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3FA5#FFFFFF#000000##FFFFFF
##7F3FA51.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1559A8
Deuteranopia (green-blind)
#345EA3
Tritanopia (blue-blind)
#7A526C
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7f3fa5;
/* rgb */ color: rgb(127, 63, 165);
/* oklch */ color: oklch(49.6% 0.164 310.7);
Tailwind
colors: {
  custom: {
    50: '#a778c0',
    500: '#7f3fa5',
    950: '#000000',
  },
}
SCSS
$custom: #7f3fa5;
$custom-light: #a778c0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3fa5",
  "rgb": {
    "r": 127,
    "g": 63,
    "b": 165
  },
  "hsl": {
    "h": 277.647,
    "s": 44.737,
    "l": 44.706
  },
  "oklch": {
    "l": 0.49552,
    "c": 0.16369,
    "h": 310.7
  },
  "luminance": 0.10784
}

Semantic roles & 50–950 ramp

primary
#7F3FA5
secondary
#98BE82
accent
#D45383
background
#FAF7FB
surface
#F4EDF7
border
#CEC8D0
text
#100912
muted
#7F7B81

Preview Lab

Preview with #7F3FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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