#7F38B7#7F38B7

#7F38B7 is a mid, vivid violet. Relative luminance 0.108; OKLCH L 49.9% C 0.193 H 306.2°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#7F38B7
RGBrgb(127, 56, 183)
HSLhsl(274, 53%, 47%)
HSVhsv(274, 69%, 72%)
CMYKcmyk(30.6%, 69.4%, 0%, 28.2%)
CIE-LABlab(39.17, 53.06, -54.82)
CIE-LCHlch(39.17, 76.29, 314.07°)
OKLaboklab(49.9% 0.1137 -0.1556)
OKLCHoklch(49.9% 0.193 306.2)
XYZxyz(18.7120, 10.7594, 45.8816)
Luminance0.1076 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F38B7 #70B738
analogous
#3F38B7 #7F38B7 #B738B0
triadic
#7F38B7 #B77F38 #38B77F
tetradic
#7F38B7 #B73F38 #70B738 #38B0B7
square
#7F38B7 #B73F38 #70B738 #38B0B7
split-complementary
#7F38B7 #B0B738 #38B73F
monochromatic
#3E1B59 #5E2A88 #7F38B7 #9D5ECE #B98DDC

Accessibility & contrast

On white

6.66
#7F38B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#7F38B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F38B7
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F38B7#FFFFFF#000000##FFFFFF
##7F38B71.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABB
Deuteranopia (green-blind)
#0D5DB4
Tritanopia (blue-blind)
#755573
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7f38b7;
/* rgb */ color: rgb(127, 56, 183);
/* oklch */ color: oklch(49.9% 0.193 306.2);
Tailwind
colors: {
  custom: {
    50: '#a974cd',
    500: '#7f38b7',
    950: '#000000',
  },
}
SCSS
$custom: #7f38b7;
$custom-light: #a974cd;
$custom-dark: #000000;
JSON
{
  "hex": "#7f38b7",
  "rgb": {
    "r": 127,
    "g": 56,
    "b": 183
  },
  "hsl": {
    "h": 273.543,
    "s": 53.138,
    "l": 46.863
  },
  "oklch": {
    "l": 0.49904,
    "c": 0.19266,
    "h": 306.2
  },
  "luminance": 0.10759
}

Semantic roles & 50–950 ramp

primary
#7F38B7
secondary
#A1C784
accent
#DD4B8B
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7F38B7

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

Preview Lab → · Contrast checker → · Palette generator →

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