#7D38BE#7D38BE

#7D38BE is a mid, vivid violet. Relative luminance 0.109; OKLCH L 50.2% C 0.200 H 303.4°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#7D38BE
RGBrgb(125, 56, 190)
HSLhsl(271, 54%, 48%)
HSVhsv(271, 71%, 75%)
CMYKcmyk(34.2%, 70.5%, 0%, 25.5%)
CIE-LABlab(39.42, 54.30, -58.54)
CIE-LCHlch(39.42, 79.85, 312.85°)
OKLaboklab(50.19% 0.1099 -0.1666)
OKLCHoklch(50.19% 0.2 303.4)
XYZxyz(19.1637, 10.9060, 49.8007)
Luminance0.1091 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D38BE #79BE38
analogous
#3A38BE #7D38BE #BE38BC
triadic
#7D38BE #BE7D38 #38BE7D
tetradic
#7D38BE #BE3A38 #79BE38 #38BCBE
square
#7D38BE #BE3A38 #79BE38 #38BCBE
split-complementary
#7D38BE #BCBE38 #38BE3A
monochromatic
#3F1C5F #5E2A8F #7D38BE #9B62D1 #B992DF

Accessibility & contrast

On white

6.60
#7D38BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#7D38BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D38BE
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D38BE#FFFFFF#000000##FFFFFF
##7D38BE1.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC2
Deuteranopia (green-blind)
#005DBB
Tritanopia (blue-blind)
#705877
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7d38be;
/* rgb */ color: rgb(125, 56, 190);
/* oklch */ color: oklch(50.2% 0.200 303.4);
Tailwind
colors: {
  custom: {
    50: '#a874d2',
    500: '#7d38be',
    950: '#000000',
  },
}
SCSS
$custom: #7d38be;
$custom-light: #a874d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7d38be",
  "rgb": {
    "r": 125,
    "g": 56,
    "b": 190
  },
  "hsl": {
    "h": 270.896,
    "s": 54.472,
    "l": 48.235
  },
  "oklch": {
    "l": 0.50186,
    "c": 0.19956,
    "h": 303.4
  },
  "luminance": 0.10906
}

Semantic roles & 50–950 ramp

primary
#7D38BE
secondary
#A8CA88
accent
#DE4A92
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7D38BE

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

Preview Lab → · Contrast checker → · Palette generator →

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