#7D38C7#7D38C7

#7D38C7 is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 50.9% C 0.209 H 301.2°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#7D38C7
RGBrgb(125, 56, 199)
HSLhsl(269, 56%, 50%)
HSVhsv(269, 72%, 78%)
CMYKcmyk(37.2%, 71.9%, 0%, 22%)
CIE-LABlab(40.10, 56.46, -62.69)
CIE-LCHlch(40.10, 84.37, 312.01°)
OKLaboklab(50.88% 0.1083 -0.1788)
OKLCHoklch(50.88% 0.209 301.2)
XYZxyz(20.1779, 11.3117, 55.1421)
Luminance0.1131 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D38C7 #82C738
analogous
#383BC7 #7D38C7 #C438C7
triadic
#7D38C7 #C77D38 #38C77D
tetradic
#7D38C7 #C7383B #82C738 #38C7C4
square
#7D38C7 #C7383B #82C738 #38C7C4
split-complementary
#7D38C7 #C7C438 #3BC738
monochromatic
#411D67 #5F2B97 #7D38C7 #9C68D4 #BB98E2

Accessibility & contrast

On white

6.44
#7D38C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#7D38C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D38C7
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D38C7#FFFFFF#000000##FFFFFF
##7D38C71.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECB
Deuteranopia (green-blind)
#005EC4
Tritanopia (blue-blind)
#6D5B7C
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7d38c7;
/* rgb */ color: rgb(125, 56, 199);
/* oklch */ color: oklch(50.9% 0.209 301.2);
Tailwind
colors: {
  custom: {
    50: '#a975d9',
    500: '#7d38c7',
    950: '#000000',
  },
}
SCSS
$custom: #7d38c7;
$custom-light: #a975d9;
$custom-dark: #000000;
JSON
{
  "hex": "#7d38c7",
  "rgb": {
    "r": 125,
    "g": 56,
    "b": 199
  },
  "hsl": {
    "h": 268.951,
    "s": 56.078,
    "l": 50
  },
  "oklch": {
    "l": 0.50881,
    "c": 0.20903,
    "h": 301.2
  },
  "luminance": 0.11312
}

Semantic roles & 50–950 ramp

primary
#7D38C7
secondary
#AFCD8D
accent
#DF4897
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7D38C7

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

Preview Lab → · Contrast checker → · Palette generator →

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