#7E38C3#7E38C3

#7E38C3 is a mid, highly saturated violet. Relative luminance 0.112; OKLCH L 50.7% C 0.205 H 302.6°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#7E38C3
RGBrgb(126, 56, 195)
HSLhsl(270, 55%, 49%)
HSVhsv(270, 71%, 76%)
CMYKcmyk(35.4%, 71.3%, 0%, 23.5%)
CIE-LABlab(39.92, 55.69, -60.65)
CIE-LCHlch(39.92, 82.34, 312.56°)
OKLaboklab(50.69% 0.1104 -0.1727)
OKLCHoklch(50.69% 0.205 302.6)
XYZxyz(19.8664, 11.2041, 52.7352)
Luminance0.1120 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E38C3 #7DC338
analogous
#3938C3 #7E38C3 #C338C3
triadic
#7E38C3 #C37E38 #38C37E
tetradic
#7E38C3 #C33938 #7DC338 #38C3C3
square
#7E38C3 #C33938 #7DC338 #38C3C3
split-complementary
#7E38C3 #C3C338 #38C339
monochromatic
#411D64 #5F2A93 #7E38C3 #9C65D3 #BB95E1

Accessibility & contrast

On white

6.48
#7E38C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#7E38C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E38C3
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E38C3#FFFFFF#000000##FFFFFF
##7E38C31.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC7
Deuteranopia (green-blind)
#005EC0
Tritanopia (blue-blind)
#70597A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7e38c3;
/* rgb */ color: rgb(126, 56, 195);
/* oklch */ color: oklch(50.7% 0.205 302.6);
Tailwind
colors: {
  custom: {
    50: '#a975d6',
    500: '#7e38c3',
    950: '#000000',
  },
}
SCSS
$custom: #7e38c3;
$custom-light: #a975d6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e38c3",
  "rgb": {
    "r": 126,
    "g": 56,
    "b": 195
  },
  "hsl": {
    "h": 270.216,
    "s": 55.378,
    "l": 49.216
  },
  "oklch": {
    "l": 0.50687,
    "c": 0.20502,
    "h": 302.6
  },
  "luminance": 0.11204
}

Semantic roles & 50–950 ramp

primary
#7E38C3
secondary
#ABCC8B
accent
#DF4993
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7E38C3

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

Preview Lab → · Contrast checker → · Palette generator →

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