#7F38BE#7F38BE

#7F38BE is a mid, vivid violet. Relative luminance 0.111; OKLCH L 50.4% C 0.200 H 304.3°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#7F38BE
RGBrgb(127, 56, 190)
HSLhsl(272, 54%, 48%)
HSVhsv(272, 71%, 75%)
CMYKcmyk(33.2%, 70.5%, 0%, 25.5%)
CIE-LABlab(39.68, 54.70, -58.11)
CIE-LCHlch(39.68, 79.80, 313.27°)
OKLaboklab(50.42% 0.1127 -0.1652)
OKLCHoklch(50.42% 0.2 304.3)
XYZxyz(19.4587, 11.0581, 49.8145)
Luminance0.1106 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F38BE #77BE38
analogous
#3C38BE #7F38BE #BE38BA
triadic
#7F38BE #BE7F38 #38BE7F
tetradic
#7F38BE #BE3C38 #77BE38 #38BABE
square
#7F38BE #BE3C38 #77BE38 #38BABE
split-complementary
#7F38BE #BABE38 #38BE3C
monochromatic
#401C5F #5F2A8F #7F38BE #9D62D1 #BB92DF

Accessibility & contrast

On white

6.54
#7F38BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#7F38BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F38BE
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F38BE#FFFFFF#000000##FFFFFF
##7F38BE1.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f38be;
/* rgb */ color: rgb(127, 56, 190);
/* oklch */ color: oklch(50.4% 0.200 304.3);
Tailwind
colors: {
  custom: {
    50: '#a974d2',
    500: '#7f38be',
    950: '#000000',
  },
}
SCSS
$custom: #7f38be;
$custom-light: #a974d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f38be",
  "rgb": {
    "r": 127,
    "g": 56,
    "b": 190
  },
  "hsl": {
    "h": 271.791,
    "s": 54.472,
    "l": 48.235
  },
  "oklch": {
    "l": 0.50424,
    "c": 0.19999,
    "h": 304.3
  },
  "luminance": 0.11058
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7F38BE

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

Preview Lab → · Contrast checker → · Palette generator →

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