#7D38C5#7D38C5

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

Color values

HEX#7D38C5
RGBrgb(125, 56, 197)
HSLhsl(269, 56%, 50%)
HSVhsv(269, 72%, 77%)
CMYKcmyk(36.5%, 71.6%, 0%, 22.7%)
CIE-LABlab(39.95, 55.98, -61.78)
CIE-LCHlch(39.95, 83.37, 312.18°)
OKLaboklab(50.72% 0.1087 -0.1761)
OKLCHoklch(50.72% 0.207 301.7)
XYZxyz(19.9472, 11.2194, 53.9272)
Luminance0.1122 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D38C5 #80C538
analogous
#3839C5 #7D38C5 #C438C5
triadic
#7D38C5 #C57D38 #38C57D
tetradic
#7D38C5 #C53839 #80C538 #38C5C4
square
#7D38C5 #C53839 #80C538 #38C5C4
split-complementary
#7D38C5 #C5C438 #39C538
monochromatic
#411D66 #5F2A95 #7D38C5 #9C67D4 #BB96E1

Accessibility & contrast

On white

6.47
#7D38C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7D38C5
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D38C5#FFFFFF#000000##FFFFFF
##7D38C51.006.473.246.47
#FFFFFF6.471.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC9
Deuteranopia (green-blind)
#005DC2
Tritanopia (blue-blind)
#6E5A7B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7d38c5;
/* rgb */ color: rgb(125, 56, 197);
/* oklch */ color: oklch(50.7% 0.207 301.7);
Tailwind
colors: {
  custom: {
    50: '#a875d7',
    500: '#7d38c5',
    950: '#000000',
  },
}
SCSS
$custom: #7d38c5;
$custom-light: #a875d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7d38c5",
  "rgb": {
    "r": 125,
    "g": 56,
    "b": 197
  },
  "hsl": {
    "h": 269.362,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.50725,
    "c": 0.20693,
    "h": 301.7
  },
  "luminance": 0.1122
}

Semantic roles & 50–950 ramp

primary
#7D38C5
secondary
#ADCD8C
accent
#DF4995
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7D38C5

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

Preview Lab → · Contrast checker → · Palette generator →

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