#7E38BD#7E38BD

#7E38BD is a mid, vivid violet. Relative luminance 0.109; OKLCH L 50.2% C 0.199 H 304.1°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#7E38BD
RGBrgb(126, 56, 189)
HSLhsl(272, 54%, 48%)
HSVhsv(272, 70%, 74%)
CMYKcmyk(33.3%, 70.4%, 0%, 25.9%)
CIE-LABlab(39.48, 54.26, -57.86)
CIE-LCHlch(39.48, 79.32, 313.16°)
OKLaboklab(50.23% 0.1114 -0.1645)
OKLCHoklch(50.23% 0.199 304.1)
XYZxyz(19.2016, 10.9381, 49.2339)
Luminance0.1094 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E38BD #77BD38
analogous
#3B38BD #7E38BD #BD38B9
triadic
#7E38BD #BD7E38 #38BD7E
tetradic
#7E38BD #BD3B38 #77BD38 #38B9BD
square
#7E38BD #BD3B38 #77BD38 #38B9BD
split-complementary
#7E38BD #B9BD38 #38BD3B
monochromatic
#3F1C5F #5F2A8E #7E38BD #9C62D0 #BA91DE

Accessibility & contrast

On white

6.59
#7E38BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#7E38BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E38BD
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E38BD#FFFFFF#000000##FFFFFF
##7E38BD1.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e38bd;
/* rgb */ color: rgb(126, 56, 189);
/* oklch */ color: oklch(50.2% 0.199 304.1);
Tailwind
colors: {
  custom: {
    50: '#a874d2',
    500: '#7e38bd',
    950: '#000000',
  },
}
SCSS
$custom: #7e38bd;
$custom-light: #a874d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e38bd",
  "rgb": {
    "r": 126,
    "g": 56,
    "b": 189
  },
  "hsl": {
    "h": 271.579,
    "s": 54.286,
    "l": 48.039
  },
  "oklch": {
    "l": 0.5023,
    "c": 0.19872,
    "h": 304.1
  },
  "luminance": 0.10938
}

Semantic roles & 50–950 ramp

primary
#7E38BD
secondary
#A7C987
accent
#DE4A90
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7E38BD

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

Preview Lab → · Contrast checker → · Palette generator →

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