#7D38BB#7D38BB

#7D38BB is a mid, vivid violet. Relative luminance 0.108; OKLCH L 50.0% C 0.196 H 304.2°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#7D38BB
RGBrgb(125, 56, 187)
HSLhsl(272, 54%, 48%)
HSVhsv(272, 70%, 73%)
CMYKcmyk(33.2%, 70.1%, 0%, 26.7%)
CIE-LABlab(39.20, 53.59, -57.14)
CIE-LCHlch(39.20, 78.34, 313.17°)
OKLaboklab(49.96% 0.1104 -0.1624)
OKLCHoklch(49.96% 0.196 304.2)
XYZxyz(18.8392, 10.7762, 48.0916)
Luminance0.1078 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D38BB #76BB38
analogous
#3C38BB #7D38BB #BB38B7
triadic
#7D38BB #BB7D38 #38BB7D
tetradic
#7D38BB #BB3C38 #76BB38 #38B7BB
square
#7D38BB #BB3C38 #76BB38 #38B7BB
split-complementary
#7D38BB #B7BB38 #38BB3C
monochromatic
#3E1C5D #5E2A8C #7D38BB #9B61D0 #B990DE

Accessibility & contrast

On white

6.66
#7D38BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#7D38BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D38BB
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D38BB#FFFFFF#000000##FFFFFF
##7D38BB1.006.663.166.66
#FFFFFF6.661.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBF
Deuteranopia (green-blind)
#005CB8
Tritanopia (blue-blind)
#715675
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7d38bb;
/* rgb */ color: rgb(125, 56, 187);
/* oklch */ color: oklch(50.0% 0.196 304.2);
Tailwind
colors: {
  custom: {
    50: '#a874d0',
    500: '#7d38bb',
    950: '#000000',
  },
}
SCSS
$custom: #7d38bb;
$custom-light: #a874d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7d38bb",
  "rgb": {
    "r": 125,
    "g": 56,
    "b": 187
  },
  "hsl": {
    "h": 271.603,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.4996,
    "c": 0.19639,
    "h": 304.2
  },
  "luminance": 0.10776
}

Semantic roles & 50–950 ramp

primary
#7D38BB
secondary
#A6C886
accent
#DD4B90
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7D38BB

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

Preview Lab → · Contrast checker → · Palette generator →

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