#7D38B7#7D38B7

#7D38B7 is a mid, vivid violet. Relative luminance 0.106; OKLCH L 49.7% C 0.192 H 305.3°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#7D38B7
RGBrgb(125, 56, 183)
HSLhsl(273, 53%, 47%)
HSVhsv(273, 69%, 72%)
CMYKcmyk(31.7%, 69.4%, 0%, 28.2%)
CIE-LABlab(38.91, 52.65, -55.25)
CIE-LCHlch(38.91, 76.32, 313.62°)
OKLaboklab(49.66% 0.1109 -0.1569)
OKLCHoklch(49.66% 0.192 305.3)
XYZxyz(18.4170, 10.6073, 45.8677)
Luminance0.1061 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D38B7 #72B738
analogous
#3D38B7 #7D38B7 #B738B2
triadic
#7D38B7 #B77D38 #38B77D
tetradic
#7D38B7 #B73D38 #72B738 #38B2B7
square
#7D38B7 #B73D38 #72B738 #38B2B7
split-complementary
#7D38B7 #B2B738 #38B73D
monochromatic
#3D1B59 #5D2A88 #7D38B7 #9B5ECE #B88DDC

Accessibility & contrast

On white

6.73
#7D38B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#7D38B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D38B7
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D38B7#FFFFFF#000000##FFFFFF
##7D38B71.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABB
Deuteranopia (green-blind)
#055CB4
Tritanopia (blue-blind)
#725573
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7d38b7;
/* rgb */ color: rgb(125, 56, 183);
/* oklch */ color: oklch(49.7% 0.192 305.3);
Tailwind
colors: {
  custom: {
    50: '#a774cd',
    500: '#7d38b7',
    950: '#000000',
  },
}
SCSS
$custom: #7d38b7;
$custom-light: #a774cd;
$custom-dark: #000000;
JSON
{
  "hex": "#7d38b7",
  "rgb": {
    "r": 125,
    "g": 56,
    "b": 183
  },
  "hsl": {
    "h": 272.598,
    "s": 53.138,
    "l": 46.863
  },
  "oklch": {
    "l": 0.49662,
    "c": 0.19217,
    "h": 305.3
  },
  "luminance": 0.10607
}

Semantic roles & 50–950 ramp

primary
#7D38B7
secondary
#A3C784
accent
#DD4B8E
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7D38B7

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

Preview Lab → · Contrast checker → · Palette generator →

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