#7E38D7#7E38D7

#7E38D7 is a mid, highly saturated violet. Relative luminance 0.122; OKLCH L 52.3% C 0.226 H 298.1°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#7E38D7
RGBrgb(126, 56, 215)
HSLhsl(266, 67%, 53%)
HSVhsv(266, 74%, 84%)
CMYKcmyk(41.4%, 74%, 0%, 15.7%)
CIE-LABlab(41.48, 60.52, -69.68)
CIE-LCHlch(41.48, 92.29, 310.97°)
OKLaboklab(52.28% 0.1063 -0.1993)
OKLCHoklch(52.28% 0.226 298.1)
XYZxyz(22.2809, 12.1699, 65.4519)
Luminance0.1217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E38D7 #91D738
analogous
#3841D7 #7E38D7 #CD38D7
triadic
#7E38D7 #D77E38 #38D77E
tetradic
#7E38D7 #D73841 #91D738 #38D7CD
square
#7E38D7 #D73841 #91D738 #38D7CD
split-complementary
#7E38D7 #D7CD38 #41D738
monochromatic
#44197C #6123AF #7E38D7 #9F6BE1 #C09EEB

Accessibility & contrast

On white

6.12
#7E38D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#7E38D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E38D7
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E38D7#FFFFFF#000000##FFFFFF
##7E38D71.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062DC
Deuteranopia (green-blind)
#0060D4
Tritanopia (blue-blind)
#686185
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7e38d7;
/* rgb */ color: rgb(126, 56, 215);
/* oklch */ color: oklch(52.3% 0.226 298.1);
Tailwind
colors: {
  custom: {
    50: '#ab75e4',
    500: '#7e38d7',
    950: '#000000',
  },
}
SCSS
$custom: #7e38d7;
$custom-light: #ab75e4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e38d7",
  "rgb": {
    "r": 126,
    "g": 56,
    "b": 215
  },
  "hsl": {
    "h": 266.415,
    "s": 66.527,
    "l": 53.137
  },
  "oklch": {
    "l": 0.52278,
    "c": 0.22588,
    "h": 298.1
  },
  "luminance": 0.1217
}

Semantic roles & 50–950 ramp

primary
#7E38D7
secondary
#B9D893
accent
#E93E9E
background
#FBF7FE
surface
#F6EDFC
border
#D0C8D5
text
#110916
muted
#807B84

Preview Lab

Preview with #7E38D7

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

Preview Lab → · Contrast checker → · Palette generator →

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