#7D38BA#7D38BA

#7D38BA is a mid, vivid violet. Relative luminance 0.107; OKLCH L 49.9% C 0.195 H 304.5°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#7D38BA
RGBrgb(125, 56, 186)
HSLhsl(272, 54%, 47%)
HSVhsv(272, 70%, 73%)
CMYKcmyk(32.8%, 69.9%, 0%, 27.1%)
CIE-LABlab(39.13, 53.35, -56.67)
CIE-LCHlch(39.13, 77.83, 313.27°)
OKLaboklab(49.89% 0.1105 -0.1611)
OKLCHoklch(49.89% 0.195 304.5)
XYZxyz(18.7325, 10.7336, 47.5298)
Luminance0.1073 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D38BA #75BA38
analogous
#3C38BA #7D38BA #BA38B6
triadic
#7D38BA #BA7D38 #38BA7D
tetradic
#7D38BA #BA3C38 #75BA38 #38B6BA
square
#7D38BA #BA3C38 #75BA38 #38B6BA
split-complementary
#7D38BA #B6BA38 #38BA3C
monochromatic
#3E1C5C #5D2A8B #7D38BA #9B60CF #B98FDD

Accessibility & contrast

On white

6.67
#7D38BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#7D38BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D38BA
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D38BA#FFFFFF#000000##FFFFFF
##7D38BA1.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7d38ba;
/* rgb */ color: rgb(125, 56, 186);
/* oklch */ color: oklch(49.9% 0.195 304.5);
Tailwind
colors: {
  custom: {
    50: '#a874d0',
    500: '#7d38ba',
    950: '#000000',
  },
}
SCSS
$custom: #7d38ba;
$custom-light: #a874d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7d38ba",
  "rgb": {
    "r": 125,
    "g": 56,
    "b": 186
  },
  "hsl": {
    "h": 271.846,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.49885,
    "c": 0.19534,
    "h": 304.5
  },
  "luminance": 0.10733
}

Semantic roles & 50–950 ramp

primary
#7D38BA
secondary
#A5C886
accent
#DD4B8F
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7D38BA

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

Preview Lab → · Contrast checker → · Palette generator →

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