#7D38BF#7D38BF

#7D38BF is a mid, highly saturated violet. Relative luminance 0.110; OKLCH L 50.3% C 0.201 H 303.2°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#7D38BF
RGBrgb(125, 56, 191)
HSLhsl(271, 55%, 48%)
HSVhsv(271, 71%, 75%)
CMYKcmyk(34.6%, 70.7%, 0%, 25.1%)
CIE-LABlab(39.50, 54.54, -59.01)
CIE-LCHlch(39.50, 80.35, 312.75°)
OKLaboklab(50.26% 0.1097 -0.1679)
OKLCHoklch(50.26% 0.201 303.2)
XYZxyz(19.2734, 10.9499, 50.3783)
Luminance0.1095 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D38BF #7ABF38
analogous
#3A38BF #7D38BF #BF38BD
triadic
#7D38BF #BF7D38 #38BF7D
tetradic
#7D38BF #BF3A38 #7ABF38 #38BDBF
square
#7D38BF #BF3A38 #7ABF38 #38BDBF
split-complementary
#7D38BF #BDBF38 #38BF3A
monochromatic
#3F1C60 #5E2A90 #7D38BF #9B63D1 #BA92DF

Accessibility & contrast

On white

6.58
#7D38BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#7D38BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D38BF
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D38BF#FFFFFF#000000##FFFFFF
##7D38BF1.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC3
Deuteranopia (green-blind)
#005DBC
Tritanopia (blue-blind)
#705878
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7d38bf;
/* rgb */ color: rgb(125, 56, 191);
/* oklch */ color: oklch(50.3% 0.201 303.2);
Tailwind
colors: {
  custom: {
    50: '#a874d3',
    500: '#7d38bf',
    950: '#000000',
  },
}
SCSS
$custom: #7d38bf;
$custom-light: #a874d3;
$custom-dark: #000000;
JSON
{
  "hex": "#7d38bf",
  "rgb": {
    "r": 125,
    "g": 56,
    "b": 191
  },
  "hsl": {
    "h": 270.667,
    "s": 54.656,
    "l": 48.431
  },
  "oklch": {
    "l": 0.50263,
    "c": 0.20062,
    "h": 303.2
  },
  "luminance": 0.1095
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7D38BF

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

Preview Lab → · Contrast checker → · Palette generator →

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