#7C38BD#7C38BD

#7C38BD is a mid, vivid violet. Relative luminance 0.108; OKLCH L 50.0% C 0.198 H 303.2°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#7C38BD
RGBrgb(124, 56, 189)
HSLhsl(271, 54%, 48%)
HSVhsv(271, 70%, 74%)
CMYKcmyk(34.4%, 70.4%, 0%, 25.9%)
CIE-LABlab(39.22, 53.87, -58.29)
CIE-LCHlch(39.22, 79.37, 312.74°)
OKLaboklab(49.99% 0.1087 -0.1659)
OKLCHoklch(49.99% 0.198 303.2)
XYZxyz(18.9095, 10.7876, 49.2202)
Luminance0.1079 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C38BD #79BD38
analogous
#3A38BD #7C38BD #BD38BB
triadic
#7C38BD #BD7C38 #38BD7C
tetradic
#7C38BD #BD3A38 #79BD38 #38BBBD
square
#7C38BD #BD3A38 #79BD38 #38BBBD
split-complementary
#7C38BD #BBBD38 #38BD3A
monochromatic
#3E1C5F #5D2A8E #7C38BD #9A62D0 #B991DE

Accessibility & contrast

On white

6.65
#7C38BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#7C38BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C38BD
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C38BD#FFFFFF#000000##FFFFFF
##7C38BD1.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC1
Deuteranopia (green-blind)
#005CBA
Tritanopia (blue-blind)
#6F5777
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7c38bd;
/* rgb */ color: rgb(124, 56, 189);
/* oklch */ color: oklch(50.0% 0.198 303.2);
Tailwind
colors: {
  custom: {
    50: '#a774d2',
    500: '#7c38bd',
    950: '#000000',
  },
}
SCSS
$custom: #7c38bd;
$custom-light: #a774d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7c38bd",
  "rgb": {
    "r": 124,
    "g": 56,
    "b": 189
  },
  "hsl": {
    "h": 270.677,
    "s": 54.286,
    "l": 48.039
  },
  "oklch": {
    "l": 0.49992,
    "c": 0.1983,
    "h": 303.2
  },
  "luminance": 0.10788
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7C38BD

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

Preview Lab → · Contrast checker → · Palette generator →

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