#7F3FA2#7F3FA2

#7F3FA2 is a mid, vivid violet. Relative luminance 0.107; OKLCH L 49.4% C 0.160 H 311.8°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#7F3FA2
RGBrgb(127, 63, 162)
HSLhsl(279, 44%, 44%)
HSVhsv(279, 61%, 64%)
CMYKcmyk(21.6%, 61.1%, 0%, 36.5%)
CIE-LABlab(39.03, 44.79, -42.56)
CIE-LCHlch(39.03, 61.79, 316.46°)
OKLaboklab(49.36% 0.1068 -0.1196)
OKLCHoklch(49.36% 0.16 311.8)
XYZxyz(17.0503, 10.6761, 35.3379)
Luminance0.1068 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3FA2 #62A23F
analogous
#4E3FA2 #7F3FA2 #A23F94
triadic
#7F3FA2 #A27F3F #3FA27F
tetradic
#7F3FA2 #A24E3F #62A23F #3F94A2
square
#7F3FA2 #A24E3F #62A23F #3F94A2
split-complementary
#7F3FA2 #94A23F #3FA24E
monochromatic
#3A1D4A #5C2E76 #7F3FA2 #9E5EC0 #B88AD1

Accessibility & contrast

On white

6.70
#7F3FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#7F3FA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3FA2
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3FA2#FFFFFF#000000##FFFFFF
##7F3FA21.006.703.146.70
#FFFFFF6.701.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A59A5
Deuteranopia (green-blind)
#375DA0
Tritanopia (blue-blind)
#7B516A
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7f3fa2;
/* rgb */ color: rgb(127, 63, 162);
/* oklch */ color: oklch(49.4% 0.160 311.8);
Tailwind
colors: {
  custom: {
    50: '#a778be',
    500: '#7f3fa2',
    950: '#000000',
  },
}
SCSS
$custom: #7f3fa2;
$custom-light: #a778be;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3fa2",
  "rgb": {
    "r": 127,
    "g": 63,
    "b": 162
  },
  "hsl": {
    "h": 278.788,
    "s": 44,
    "l": 44.118
  },
  "oklch": {
    "l": 0.49358,
    "c": 0.16039,
    "h": 311.8
  },
  "luminance": 0.10676
}

Semantic roles & 50–950 ramp

primary
#7F3FA2
secondary
#96BC81
accent
#D45481
background
#FAF7FB
surface
#F4EDF7
border
#CEC8D0
text
#100912
muted
#7F7B81

Preview Lab

Preview with #7F3FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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