#7F38BD#7F38BD

#7F38BD is a mid, vivid violet. Relative luminance 0.110; OKLCH L 50.3% C 0.199 H 304.5°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#7F38BD
RGBrgb(127, 56, 189)
HSLhsl(272, 54%, 48%)
HSVhsv(272, 70%, 74%)
CMYKcmyk(32.8%, 70.4%, 0%, 25.9%)
CIE-LABlab(39.60, 54.46, -57.64)
CIE-LCHlch(39.60, 79.30, 313.37°)
OKLaboklab(50.35% 0.1128 -0.1639)
OKLCHoklch(50.35% 0.199 304.5)
XYZxyz(19.3498, 11.0146, 49.2409)
Luminance0.1101 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F38BD #76BD38
analogous
#3C38BD #7F38BD #BD38B8
triadic
#7F38BD #BD7F38 #38BD7F
tetradic
#7F38BD #BD3C38 #76BD38 #38B8BD
square
#7F38BD #BD3C38 #76BD38 #38B8BD
split-complementary
#7F38BD #B8BD38 #38BD3C
monochromatic
#401C5F #5F2A8E #7F38BD #9D62D0 #BA91DE

Accessibility & contrast

On white

6.56
#7F38BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#7F38BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F38BD
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F38BD#FFFFFF#000000##FFFFFF
##7F38BD1.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC1
Deuteranopia (green-blind)
#005DBA
Tritanopia (blue-blind)
#735777
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7f38bd;
/* rgb */ color: rgb(127, 56, 189);
/* oklch */ color: oklch(50.3% 0.199 304.5);
Tailwind
colors: {
  custom: {
    50: '#a974d2',
    500: '#7f38bd',
    950: '#000000',
  },
}
SCSS
$custom: #7f38bd;
$custom-light: #a974d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f38bd",
  "rgb": {
    "r": 127,
    "g": 56,
    "b": 189
  },
  "hsl": {
    "h": 272.03,
    "s": 54.286,
    "l": 48.039
  },
  "oklch": {
    "l": 0.50349,
    "c": 0.19895,
    "h": 304.5
  },
  "luminance": 0.11014
}

Semantic roles & 50–950 ramp

primary
#7F38BD
secondary
#A6C987
accent
#DE4A8F
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7F38BD

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

Preview Lab → · Contrast checker → · Palette generator →

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