#7F3CB2#7F3CB2

#7F3CB2 is a mid, vivid violet. Relative luminance 0.110; OKLCH L 50.0% C 0.182 H 307.1°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#7F3CB2
RGBrgb(127, 60, 178)
HSLhsl(274, 50%, 47%)
HSVhsv(274, 66%, 70%)
CMYKcmyk(28.7%, 66.3%, 0%, 30.2%)
CIE-LABlab(39.51, 49.99, -51.32)
CIE-LCHlch(39.51, 71.64, 314.25°)
OKLaboklab(50.04% 0.1098 -0.1453)
OKLCHoklch(50.04% 0.182 307.1)
XYZxyz(18.4024, 10.9583, 43.2566)
Luminance0.1096 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3CB2 #6FB23C
analogous
#443CB2 #7F3CB2 #B23CAA
triadic
#7F3CB2 #B27F3C #3CB27F
tetradic
#7F3CB2 #B2443C #6FB23C #3CAAB2
square
#7F3CB2 #B2443C #6FB23C #3CAAB2
split-complementary
#7F3CB2 #AAB23C #3CB244
monochromatic
#3E1D56 #5E2D84 #7F3CB2 #9D61CA #B98FD9

Accessibility & contrast

On white

6.58
#7F3CB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#7F3CB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3CB2
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3CB2#FFFFFF#000000##FFFFFF
##7F3CB21.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB6
Deuteranopia (green-blind)
#215EAF
Tritanopia (blue-blind)
#775572
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7f3cb2;
/* rgb */ color: rgb(127, 60, 178);
/* oklch */ color: oklch(50.0% 0.182 307.1);
Tailwind
colors: {
  custom: {
    50: '#a876ca',
    500: '#7f3cb2',
    950: '#000000',
  },
}
SCSS
$custom: #7f3cb2;
$custom-light: #a876ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3cb2",
  "rgb": {
    "r": 127,
    "g": 60,
    "b": 178
  },
  "hsl": {
    "h": 274.068,
    "s": 49.58,
    "l": 46.667
  },
  "oklch": {
    "l": 0.50036,
    "c": 0.18212,
    "h": 307.1
  },
  "luminance": 0.10958
}

Semantic roles & 50–950 ramp

primary
#7F3CB2
secondary
#A1C486
accent
#D94F8B
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7F3CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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