#7E38B6#7E38B6

#7E38B6 is a mid, vivid violet. Relative luminance 0.106; OKLCH L 49.7% C 0.191 H 306.0°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#7E38B6
RGBrgb(126, 56, 182)
HSLhsl(273, 53%, 47%)
HSVhsv(273, 69%, 71%)
CMYKcmyk(30.8%, 69.2%, 0%, 28.6%)
CIE-LABlab(38.97, 52.62, -54.56)
CIE-LCHlch(38.97, 75.80, 313.96°)
OKLaboklab(49.71% 0.1124 -0.1548)
OKLCHoklch(49.71% 0.191 306)
XYZxyz(18.4600, 10.6415, 45.3284)
Luminance0.1064 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E38B6 #70B638
analogous
#3F38B6 #7E38B6 #B638AF
triadic
#7E38B6 #B67E38 #38B67E
tetradic
#7E38B6 #B63F38 #70B638 #38AFB6
square
#7E38B6 #B63F38 #70B638 #38AFB6
split-complementary
#7E38B6 #AFB638 #38B63F
monochromatic
#3D1B58 #5E2A87 #7E38B6 #9C5ECD #B98DDC

Accessibility & contrast

On white

6.71
#7E38B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#7E38B6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E38B6
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E38B6#FFFFFF#000000##FFFFFF
##7E38B61.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABA
Deuteranopia (green-blind)
#0D5CB3
Tritanopia (blue-blind)
#745473
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7e38b6;
/* rgb */ color: rgb(126, 56, 182);
/* oklch */ color: oklch(49.7% 0.191 306.0);
Tailwind
colors: {
  custom: {
    50: '#a874cd',
    500: '#7e38b6',
    950: '#000000',
  },
}
SCSS
$custom: #7e38b6;
$custom-light: #a874cd;
$custom-dark: #000000;
JSON
{
  "hex": "#7e38b6",
  "rgb": {
    "r": 126,
    "g": 56,
    "b": 182
  },
  "hsl": {
    "h": 273.333,
    "s": 52.941,
    "l": 46.667
  },
  "oklch": {
    "l": 0.49709,
    "c": 0.19136,
    "h": 306
  },
  "luminance": 0.10641
}

Semantic roles & 50–950 ramp

primary
#7E38B6
secondary
#A1C684
accent
#DC4B8C
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7E38B6

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

Preview Lab → · Contrast checker → · Palette generator →

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