#7D38C1#7D38C1

#7D38C1 is a mid, highly saturated violet. Relative luminance 0.110; OKLCH L 50.4% C 0.203 H 302.7°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#7D38C1
RGBrgb(125, 56, 193)
HSLhsl(270, 55%, 49%)
HSVhsv(270, 71%, 76%)
CMYKcmyk(35.2%, 71%, 0%, 24.3%)
CIE-LABlab(39.65, 55.02, -59.93)
CIE-LCHlch(39.65, 81.36, 312.55°)
OKLaboklab(50.42% 0.1094 -0.1707)
OKLCHoklch(50.42% 0.203 302.7)
XYZxyz(19.4950, 11.0385, 51.5453)
Luminance0.1104 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D38C1 #7CC138
analogous
#3938C1 #7D38C1 #C138C1
triadic
#7D38C1 #C17D38 #38C17D
tetradic
#7D38C1 #C13938 #7CC138 #38C1C1
square
#7D38C1 #C13938 #7CC138 #38C1C1
split-complementary
#7D38C1 #C1C138 #38C139
monochromatic
#401C62 #5E2A92 #7D38C1 #9C64D2 #BA94E0

Accessibility & contrast

On white

6.55
#7D38C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#7D38C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D38C1
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D38C1#FFFFFF#000000##FFFFFF
##7D38C11.006.553.216.55
#FFFFFF6.551.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC5
Deuteranopia (green-blind)
#005DBE
Tritanopia (blue-blind)
#6F5979
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7d38c1;
/* rgb */ color: rgb(125, 56, 193);
/* oklch */ color: oklch(50.4% 0.203 302.7);
Tailwind
colors: {
  custom: {
    50: '#a874d5',
    500: '#7d38c1',
    950: '#000000',
  },
}
SCSS
$custom: #7d38c1;
$custom-light: #a874d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7d38c1",
  "rgb": {
    "r": 125,
    "g": 56,
    "b": 193
  },
  "hsl": {
    "h": 270.219,
    "s": 55.02,
    "l": 48.824
  },
  "oklch": {
    "l": 0.50416,
    "c": 0.20272,
    "h": 302.7
  },
  "luminance": 0.11039
}

Semantic roles & 50–950 ramp

primary
#7D38C1
secondary
#AACB8A
accent
#DE4993
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7D38C1

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

Preview Lab → · Contrast checker → · Palette generator →

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