#7E38BE#7E38BE

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

Color values

HEX#7E38BE
RGBrgb(126, 56, 190)
HSLhsl(271, 54%, 48%)
HSVhsv(271, 71%, 75%)
CMYKcmyk(33.7%, 70.5%, 0%, 25.5%)
CIE-LABlab(39.55, 54.50, -58.33)
CIE-LCHlch(39.55, 79.83, 313.06°)
OKLaboklab(50.31% 0.1113 -0.1659)
OKLCHoklch(50.31% 0.2 303.8)
XYZxyz(19.3105, 10.9817, 49.8076)
Luminance0.1098 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E38BE #78BE38
analogous
#3B38BE #7E38BE #BE38BB
triadic
#7E38BE #BE7E38 #38BE7E
tetradic
#7E38BE #BE3B38 #78BE38 #38BBBE
square
#7E38BE #BE3B38 #78BE38 #38BBBE
split-complementary
#7E38BE #BBBE38 #38BE3B
monochromatic
#3F1C5F #5F2A8F #7E38BE #9C62D1 #BA92DF

Accessibility & contrast

On white

6.57
#7E38BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7E38BE
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E38BE#FFFFFF#000000##FFFFFF
##7E38BE1.006.573.206.57
#FFFFFF6.571.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e38be;
/* rgb */ color: rgb(126, 56, 190);
/* oklch */ color: oklch(50.3% 0.200 303.8);
Tailwind
colors: {
  custom: {
    50: '#a974d2',
    500: '#7e38be',
    950: '#000000',
  },
}
SCSS
$custom: #7e38be;
$custom-light: #a974d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e38be",
  "rgb": {
    "r": 126,
    "g": 56,
    "b": 190
  },
  "hsl": {
    "h": 271.343,
    "s": 54.472,
    "l": 48.235
  },
  "oklch": {
    "l": 0.50305,
    "c": 0.19978,
    "h": 303.8
  },
  "luminance": 0.10982
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7E38BE

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

Preview Lab → · Contrast checker → · Palette generator →

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