#7E38BF#7E38BF

#7E38BF is a mid, highly saturated violet. Relative luminance 0.110; OKLCH L 50.4% C 0.201 H 303.6°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#7E38BF
RGBrgb(126, 56, 191)
HSLhsl(271, 55%, 48%)
HSVhsv(271, 71%, 75%)
CMYKcmyk(34%, 70.7%, 0%, 25.1%)
CIE-LABlab(39.62, 54.74, -58.79)
CIE-LCHlch(39.62, 80.33, 312.95°)
OKLaboklab(50.38% 0.1111 -0.1673)
OKLCHoklch(50.38% 0.201 303.6)
XYZxyz(19.4202, 11.0256, 50.3852)
Luminance0.1103 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E38BF #79BF38
analogous
#3A38BF #7E38BF #BF38BC
triadic
#7E38BF #BF7E38 #38BF7E
tetradic
#7E38BF #BF3A38 #79BF38 #38BCBF
square
#7E38BF #BF3A38 #79BF38 #38BCBF
split-complementary
#7E38BF #BCBF38 #38BF3A
monochromatic
#401C60 #5F2A90 #7E38BF #9C63D1 #BA92DF

Accessibility & contrast

On white

6.55
#7E38BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7E38BF
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E38BF#FFFFFF#000000##FFFFFF
##7E38BF1.006.553.216.55
#FFFFFF6.551.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC3
Deuteranopia (green-blind)
#005DBC
Tritanopia (blue-blind)
#715878
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7e38bf;
/* rgb */ color: rgb(126, 56, 191);
/* oklch */ color: oklch(50.4% 0.201 303.6);
Tailwind
colors: {
  custom: {
    50: '#a974d3',
    500: '#7e38bf',
    950: '#000000',
  },
}
SCSS
$custom: #7e38bf;
$custom-light: #a974d3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e38bf",
  "rgb": {
    "r": 126,
    "g": 56,
    "b": 191
  },
  "hsl": {
    "h": 271.111,
    "s": 54.656,
    "l": 48.431
  },
  "oklch": {
    "l": 0.50381,
    "c": 0.20083,
    "h": 303.6
  },
  "luminance": 0.11026
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7E38BF

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

Preview Lab → · Contrast checker → · Palette generator →

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