#7D38D7#7D38D7

#7D38D7 is a mid, highly saturated violet. Relative luminance 0.121; OKLCH L 52.2% C 0.226 H 297.7°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#7D38D7
RGBrgb(125, 56, 215)
HSLhsl(266, 67%, 53%)
HSVhsv(266, 74%, 84%)
CMYKcmyk(41.9%, 74%, 0%, 15.7%)
CIE-LABlab(41.37, 60.35, -69.88)
CIE-LCHlch(41.37, 92.33, 310.82°)
OKLaboklab(52.17% 0.1049 -0.1999)
OKLCHoklch(52.17% 0.226 297.7)
XYZxyz(22.1342, 12.0942, 65.4451)
Luminance0.1210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D38D7 #92D738
analogous
#3842D7 #7D38D7 #CD38D7
triadic
#7D38D7 #D77D38 #38D77D
tetradic
#7D38D7 #D73842 #92D738 #38D7CD
square
#7D38D7 #D73842 #92D738 #38D7CD
split-complementary
#7D38D7 #D7CD38 #42D738
monochromatic
#44197C #6023AF #7D38D7 #9E6BE1 #C09EEB

Accessibility & contrast

On white

6.14
#7D38D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#7D38D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D38D7
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D38D7#FFFFFF#000000##FFFFFF
##7D38D71.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062DC
Deuteranopia (green-blind)
#0060D4
Tritanopia (blue-blind)
#666285
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7d38d7;
/* rgb */ color: rgb(125, 56, 215);
/* oklch */ color: oklch(52.2% 0.226 297.7);
Tailwind
colors: {
  custom: {
    50: '#aa75e4',
    500: '#7d38d7',
    950: '#000000',
  },
}
SCSS
$custom: #7d38d7;
$custom-light: #aa75e4;
$custom-dark: #000000;
JSON
{
  "hex": "#7d38d7",
  "rgb": {
    "r": 125,
    "g": 56,
    "b": 215
  },
  "hsl": {
    "h": 266.038,
    "s": 66.527,
    "l": 53.137
  },
  "oklch": {
    "l": 0.52168,
    "c": 0.22576,
    "h": 297.7
  },
  "luminance": 0.12095
}

Semantic roles & 50–950 ramp

primary
#7D38D7
secondary
#BAD893
accent
#E93E9F
background
#FBF7FE
surface
#F6EDFC
border
#D0C8D5
text
#110916
muted
#807B84

Preview Lab

Preview with #7D38D7

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

Preview Lab → · Contrast checker → · Palette generator →

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