#7D38C6#7D38C6

#7D38C6 is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 50.8% C 0.208 H 301.4°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#7D38C6
RGBrgb(125, 56, 198)
HSLhsl(269, 56%, 50%)
HSVhsv(269, 72%, 78%)
CMYKcmyk(36.9%, 71.7%, 0%, 22.4%)
CIE-LABlab(40.02, 56.22, -62.24)
CIE-LCHlch(40.02, 83.87, 312.09°)
OKLaboklab(50.8% 0.1085 -0.1774)
OKLCHoklch(50.8% 0.208 301.4)
XYZxyz(20.0622, 11.2654, 54.5326)
Luminance0.1127 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D38C6 #81C638
analogous
#383AC6 #7D38C6 #C438C6
triadic
#7D38C6 #C67D38 #38C67D
tetradic
#7D38C6 #C6383A #81C638 #38C6C4
square
#7D38C6 #C6383A #81C638 #38C6C4
split-complementary
#7D38C6 #C6C438 #3AC638
monochromatic
#411D67 #5F2B96 #7D38C6 #9C67D4 #BB97E2

Accessibility & contrast

On white

6.46
#7D38C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#7D38C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D38C6
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D38C6#FFFFFF#000000##FFFFFF
##7D38C61.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7d38c6;
/* rgb */ color: rgb(125, 56, 198);
/* oklch */ color: oklch(50.8% 0.208 301.4);
Tailwind
colors: {
  custom: {
    50: '#a975d8',
    500: '#7d38c6',
    950: '#000000',
  },
}
SCSS
$custom: #7d38c6;
$custom-light: #a975d8;
$custom-dark: #000000;
JSON
{
  "hex": "#7d38c6",
  "rgb": {
    "r": 125,
    "g": 56,
    "b": 198
  },
  "hsl": {
    "h": 269.155,
    "s": 55.906,
    "l": 49.804
  },
  "oklch": {
    "l": 0.50803,
    "c": 0.20798,
    "h": 301.4
  },
  "luminance": 0.11266
}

Semantic roles & 50–950 ramp

primary
#7D38C6
secondary
#AECD8D
accent
#DF4996
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7D38C6

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

Preview Lab → · Contrast checker → · Palette generator →

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