#7D38C3#7D38C3

#7D38C3 is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.6% C 0.205 H 302.2°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#7D38C3
RGBrgb(125, 56, 195)
HSLhsl(270, 55%, 49%)
HSVhsv(270, 71%, 76%)
CMYKcmyk(35.9%, 71.3%, 0%, 23.5%)
CIE-LABlab(39.80, 55.50, -60.86)
CIE-LCHlch(39.80, 82.36, 312.36°)
OKLaboklab(50.57% 0.109 -0.1734)
OKLCHoklch(50.57% 0.205 302.2)
XYZxyz(19.7196, 11.1284, 52.7283)
Luminance0.1113 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D38C3 #7EC338
analogous
#3839C3 #7D38C3 #C338C3
triadic
#7D38C3 #C37D38 #38C37D
tetradic
#7D38C3 #C33839 #7EC338 #38C3C3
square
#7D38C3 #C33839 #7EC338 #38C3C3
split-complementary
#7D38C3 #C3C338 #39C338
monochromatic
#401D64 #5F2A93 #7D38C3 #9C65D3 #BA95E1

Accessibility & contrast

On white

6.51
#7D38C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#7D38C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D38C3
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D38C3#FFFFFF#000000##FFFFFF
##7D38C31.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC7
Deuteranopia (green-blind)
#005DC0
Tritanopia (blue-blind)
#6E5A7A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7d38c3;
/* rgb */ color: rgb(125, 56, 195);
/* oklch */ color: oklch(50.6% 0.205 302.2);
Tailwind
colors: {
  custom: {
    50: '#a874d6',
    500: '#7d38c3',
    950: '#000000',
  },
}
SCSS
$custom: #7d38c3;
$custom-light: #a874d6;
$custom-dark: #000000;
JSON
{
  "hex": "#7d38c3",
  "rgb": {
    "r": 125,
    "g": 56,
    "b": 195
  },
  "hsl": {
    "h": 269.784,
    "s": 55.378,
    "l": 49.216
  },
  "oklch": {
    "l": 0.5057,
    "c": 0.20483,
    "h": 302.2
  },
  "luminance": 0.11128
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7D38C3

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

Preview Lab → · Contrast checker → · Palette generator →

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