#7F3BBB#7F3BBB

#7F3BBB is a mid, vivid violet. Relative luminance 0.112; OKLCH L 50.6% C 0.193 H 304.7°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#7F3BBB
RGBrgb(127, 59, 187)
HSLhsl(272, 52%, 48%)
HSVhsv(272, 68%, 73%)
CMYKcmyk(32.1%, 68.4%, 0%, 26.7%)
CIE-LABlab(39.96, 52.59, -55.89)
CIE-LCHlch(39.96, 76.74, 313.26°)
OKLaboklab(50.56% 0.1099 -0.1587)
OKLCHoklch(50.56% 0.193 304.7)
XYZxyz(19.2840, 11.2279, 48.1554)
Luminance0.1123 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3BBB #77BB3B
analogous
#3F3BBB #7F3BBB #BB3BB7
triadic
#7F3BBB #BB7F3B #3BBB7F
tetradic
#7F3BBB #BB3F3B #77BB3B #3BB7BB
square
#7F3BBB #BB3F3B #77BB3B #3BB7BB
split-complementary
#7F3BBB #B7BB3B #3BBB3F
monochromatic
#401E5E #5F2C8C #7F3BBB #9D65CE #BB93DD

Accessibility & contrast

On white

6.47
#7F3BBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#7F3BBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3BBB
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3BBB#FFFFFF#000000##FFFFFF
##7F3BBB1.006.473.256.47
#FFFFFF6.471.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBF
Deuteranopia (green-blind)
#085EB8
Tritanopia (blue-blind)
#745876
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7f3bbb;
/* rgb */ color: rgb(127, 59, 187);
/* oklch */ color: oklch(50.6% 0.193 304.7);
Tailwind
colors: {
  custom: {
    50: '#a976d0',
    500: '#7f3bbb',
    950: '#000000',
  },
}
SCSS
$custom: #7f3bbb;
$custom-light: #a976d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3bbb",
  "rgb": {
    "r": 127,
    "g": 59,
    "b": 187
  },
  "hsl": {
    "h": 271.875,
    "s": 52.033,
    "l": 48.235
  },
  "oklch": {
    "l": 0.50558,
    "c": 0.19309,
    "h": 304.7
  },
  "luminance": 0.11228
}

Semantic roles & 50–950 ramp

primary
#7F3BBB
secondary
#A7C88A
accent
#DB4C8F
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7F3BBB

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

Preview Lab → · Contrast checker → · Palette generator →

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