#7F3BB2#7F3BB2

#7F3BB2 is a mid, vivid violet. Relative luminance 0.109; OKLCH L 49.9% C 0.183 H 307.2°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#7F3BB2
RGBrgb(127, 59, 178)
HSLhsl(274, 50%, 46%)
HSVhsv(274, 67%, 70%)
CMYKcmyk(28.7%, 66.9%, 0%, 30.2%)
CIE-LABlab(39.33, 50.47, -51.60)
CIE-LCHlch(39.33, 72.18, 314.37°)
OKLaboklab(49.91% 0.1109 -0.1461)
OKLCHoklch(49.91% 0.183 307.2)
XYZxyz(18.3506, 10.8545, 43.2393)
Luminance0.1085 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3BB2 #6EB23B
analogous
#443BB2 #7F3BB2 #B23BAA
triadic
#7F3BB2 #B27F3B #3BB27F
tetradic
#7F3BB2 #B2443B #6EB23B #3BAAB2
square
#7F3BB2 #B2443B #6EB23B #3BAAB2
split-complementary
#7F3BB2 #AAB23B #3BB244
monochromatic
#3D1D56 #5E2C84 #7F3BB2 #9D60CA #B98EDA

Accessibility & contrast

On white

6.62
#7F3BB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#7F3BB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3BB2
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3BB2#FFFFFF#000000##FFFFFF
##7F3BB21.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB6
Deuteranopia (green-blind)
#205DAF
Tritanopia (blue-blind)
#775571
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7f3bb2;
/* rgb */ color: rgb(127, 59, 178);
/* oklch */ color: oklch(49.9% 0.183 307.2);
Tailwind
colors: {
  custom: {
    50: '#a876ca',
    500: '#7f3bb2',
    950: '#000000',
  },
}
SCSS
$custom: #7f3bb2;
$custom-light: #a876ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3bb2",
  "rgb": {
    "r": 127,
    "g": 59,
    "b": 178
  },
  "hsl": {
    "h": 274.286,
    "s": 50.211,
    "l": 46.471
  },
  "oklch": {
    "l": 0.4991,
    "c": 0.18347,
    "h": 307.2
  },
  "luminance": 0.10854
}

Semantic roles & 50–950 ramp

primary
#7F3BB2
secondary
#A0C485
accent
#DA4E8A
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7F3BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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