#7D38C2#7D38C2

#7D38C2 is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.5% C 0.204 H 302.4°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#7D38C2
RGBrgb(125, 56, 194)
HSLhsl(270, 55%, 49%)
HSVhsv(270, 71%, 76%)
CMYKcmyk(35.6%, 71.1%, 0%, 23.9%)
CIE-LABlab(39.72, 55.26, -60.40)
CIE-LCHlch(39.72, 81.86, 312.46°)
OKLaboklab(50.49% 0.1092 -0.172)
OKLCHoklch(50.49% 0.204 302.4)
XYZxyz(19.6069, 11.0833, 52.1348)
Luminance0.1108 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D38C2 #7DC238
analogous
#3838C2 #7D38C2 #C238C2
triadic
#7D38C2 #C27D38 #38C27D
tetradic
#7D38C2 #C23838 #7DC238 #38C2C2
square
#7D38C2 #C23838 #7DC238 #38C2C2
split-complementary
#7D38C2 #C2C238 #38C238
monochromatic
#401D63 #5E2A93 #7D38C2 #9C65D2 #BA94E0

Accessibility & contrast

On white

6.53
#7D38C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#7D38C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D38C2
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D38C2#FFFFFF#000000##FFFFFF
##7D38C21.006.533.226.53
#FFFFFF6.531.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC6
Deuteranopia (green-blind)
#005DBF
Tritanopia (blue-blind)
#6F5979
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7d38c2;
/* rgb */ color: rgb(125, 56, 194);
/* oklch */ color: oklch(50.5% 0.204 302.4);
Tailwind
colors: {
  custom: {
    50: '#a874d5',
    500: '#7d38c2',
    950: '#000000',
  },
}
SCSS
$custom: #7d38c2;
$custom-light: #a874d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7d38c2",
  "rgb": {
    "r": 125,
    "g": 56,
    "b": 194
  },
  "hsl": {
    "h": 270,
    "s": 55.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.50493,
    "c": 0.20377,
    "h": 302.4
  },
  "luminance": 0.11083
}

Semantic roles & 50–950 ramp

primary
#7D38C2
secondary
#ABCB8A
accent
#DF4994
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7D38C2

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

Preview Lab → · Contrast checker → · Palette generator →

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