#7F3FB2#7F3FB2

#7F3FB2 is a mid, vivid violet. Relative luminance 0.113; OKLCH L 50.4% C 0.178 H 306.7°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#7F3FB2
RGBrgb(127, 63, 178)
HSLhsl(273, 48%, 47%)
HSVhsv(273, 65%, 70%)
CMYKcmyk(28.7%, 64.6%, 0%, 30.2%)
CIE-LABlab(40.05, 48.50, -50.45)
CIE-LCHlch(40.05, 69.98, 313.87°)
OKLaboklab(50.43% 0.1063 -0.1428)
OKLCHoklch(50.43% 0.178 306.7)
XYZxyz(18.5641, 11.2816, 43.3104)
Luminance0.1128 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3FB2 #72B23F
analogous
#453FB2 #7F3FB2 #B23FAC
triadic
#7F3FB2 #B27F3F #3FB27F
tetradic
#7F3FB2 #B2453F #72B23F #3FACB2
square
#7F3FB2 #B2453F #72B23F #3FACB2
split-complementary
#7F3FB2 #ACB23F #3FB245
monochromatic
#3E1F58 #5F2F85 #7F3FB2 #9D66C9 #BA93D9

Accessibility & contrast

On white

6.45
#7F3FB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#7F3FB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3FB2
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3FB2#FFFFFF#000000##FFFFFF
##7F3FB21.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB6
Deuteranopia (green-blind)
#265FAF
Tritanopia (blue-blind)
#775773
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7f3fb2;
/* rgb */ color: rgb(127, 63, 178);
/* oklch */ color: oklch(50.4% 0.178 306.7);
Tailwind
colors: {
  custom: {
    50: '#a878ca',
    500: '#7f3fb2',
    950: '#000000',
  },
}
SCSS
$custom: #7f3fb2;
$custom-light: #a878ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3fb2",
  "rgb": {
    "r": 127,
    "g": 63,
    "b": 178
  },
  "hsl": {
    "h": 273.391,
    "s": 47.718,
    "l": 47.255
  },
  "oklch": {
    "l": 0.50426,
    "c": 0.17798,
    "h": 306.7
  },
  "luminance": 0.11281
}

Semantic roles & 50–950 ramp

primary
#7F3FB2
secondary
#A3C489
accent
#D7508C
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7F3FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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