#7F38BA#7F38BA

#7F38BA is a mid, vivid violet. Relative luminance 0.109; OKLCH L 50.1% C 0.196 H 305.3°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#7F38BA
RGBrgb(127, 56, 186)
HSLhsl(273, 54%, 47%)
HSVhsv(273, 70%, 73%)
CMYKcmyk(31.7%, 69.9%, 0%, 27.1%)
CIE-LABlab(39.39, 53.76, -56.24)
CIE-LCHlch(39.39, 77.80, 313.71°)
OKLaboklab(50.13% 0.1133 -0.1597)
OKLCHoklch(50.13% 0.196 305.3)
XYZxyz(19.0275, 10.8857, 47.5436)
Luminance0.1089 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F38BA #73BA38
analogous
#3E38BA #7F38BA #BA38B4
triadic
#7F38BA #BA7F38 #38BA7F
tetradic
#7F38BA #BA3E38 #73BA38 #38B4BA
square
#7F38BA #BA3E38 #73BA38 #38B4BA
split-complementary
#7F38BA #B4BA38 #38BA3E
monochromatic
#3F1C5C #5F2A8B #7F38BA #9D60CF #BA8FDD

Accessibility & contrast

On white

6.61
#7F38BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#7F38BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F38BA
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F38BA#FFFFFF#000000##FFFFFF
##7F38BA1.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBE
Deuteranopia (green-blind)
#005DB7
Tritanopia (blue-blind)
#745675
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7f38ba;
/* rgb */ color: rgb(127, 56, 186);
/* oklch */ color: oklch(50.1% 0.196 305.3);
Tailwind
colors: {
  custom: {
    50: '#a974d0',
    500: '#7f38ba',
    950: '#000000',
  },
}
SCSS
$custom: #7f38ba;
$custom-light: #a974d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f38ba",
  "rgb": {
    "r": 127,
    "g": 56,
    "b": 186
  },
  "hsl": {
    "h": 272.769,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.50126,
    "c": 0.1958,
    "h": 305.3
  },
  "luminance": 0.10886
}

Semantic roles & 50–950 ramp

primary
#7F38BA
secondary
#A4C886
accent
#DD4B8D
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7F38BA

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

Preview Lab → · Contrast checker → · Palette generator →

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