#7E38BC#7E38BC

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

Color values

HEX#7E38BC
RGBrgb(126, 56, 188)
HSLhsl(272, 54%, 48%)
HSVhsv(272, 70%, 74%)
CMYKcmyk(33%, 70.2%, 0%, 26.3%)
CIE-LABlab(39.40, 54.03, -57.39)
CIE-LCHlch(39.40, 78.82, 313.27°)
OKLaboklab(50.15% 0.1116 -0.1632)
OKLCHoklch(50.15% 0.198 304.4)
XYZxyz(19.0934, 10.8949, 48.6642)
Luminance0.1090 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E38BC #76BC38
analogous
#3C38BC #7E38BC #BC38B8
triadic
#7E38BC #BC7E38 #38BC7E
tetradic
#7E38BC #BC3C38 #76BC38 #38B8BC
square
#7E38BC #BC3C38 #76BC38 #38B8BC
split-complementary
#7E38BC #B8BC38 #38BC3C
monochromatic
#3F1C5E #5E2A8D #7E38BC #9C61D0 #BA90DE

Accessibility & contrast

On white

6.61
#7E38BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#7E38BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E38BC
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E38BC#FFFFFF#000000##FFFFFF
##7E38BC1.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC0
Deuteranopia (green-blind)
#005DB9
Tritanopia (blue-blind)
#725776
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7e38bc;
/* rgb */ color: rgb(126, 56, 188);
/* oklch */ color: oklch(50.2% 0.198 304.4);
Tailwind
colors: {
  custom: {
    50: '#a874d1',
    500: '#7e38bc',
    950: '#000000',
  },
}
SCSS
$custom: #7e38bc;
$custom-light: #a874d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e38bc",
  "rgb": {
    "r": 126,
    "g": 56,
    "b": 188
  },
  "hsl": {
    "h": 271.818,
    "s": 54.098,
    "l": 47.843
  },
  "oklch": {
    "l": 0.50154,
    "c": 0.19767,
    "h": 304.4
  },
  "luminance": 0.10895
}

Semantic roles & 50–950 ramp

primary
#7E38BC
secondary
#A6C987
accent
#DD4A8F
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7E38BC

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

Preview Lab → · Contrast checker → · Palette generator →

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