#7C38C7#7C38C7

#7C38C7 is a mid, highly saturated violet. Relative luminance 0.112; OKLCH L 50.8% C 0.209 H 300.8°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#7C38C7
RGBrgb(124, 56, 199)
HSLhsl(269, 56%, 50%)
HSVhsv(269, 72%, 78%)
CMYKcmyk(37.7%, 71.9%, 0%, 22%)
CIE-LABlab(39.98, 56.28, -62.90)
CIE-LCHlch(39.98, 84.40, 311.82°)
OKLaboklab(50.77% 0.1069 -0.1794)
OKLCHoklch(50.77% 0.209 300.8)
XYZxyz(20.0326, 11.2368, 55.1353)
Luminance0.1124 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C38C7 #83C738
analogous
#383CC7 #7C38C7 #C338C7
triadic
#7C38C7 #C77C38 #38C77C
tetradic
#7C38C7 #C7383C #83C738 #38C7C3
square
#7C38C7 #C7383C #83C738 #38C7C3
split-complementary
#7C38C7 #C7C338 #3CC738
monochromatic
#401D67 #5E2B97 #7C38C7 #9B68D4 #BB98E2

Accessibility & contrast

On white

6.47
#7C38C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#7C38C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C38C7
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C38C7#FFFFFF#000000##FFFFFF
##7C38C71.006.473.256.47
#FFFFFF6.471.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECB
Deuteranopia (green-blind)
#005DC4
Tritanopia (blue-blind)
#6B5B7C
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7c38c7;
/* rgb */ color: rgb(124, 56, 199);
/* oklch */ color: oklch(50.8% 0.209 300.8);
Tailwind
colors: {
  custom: {
    50: '#a875d9',
    500: '#7c38c7',
    950: '#000000',
  },
}
SCSS
$custom: #7c38c7;
$custom-light: #a875d9;
$custom-dark: #000000;
JSON
{
  "hex": "#7c38c7",
  "rgb": {
    "r": 124,
    "g": 56,
    "b": 199
  },
  "hsl": {
    "h": 268.531,
    "s": 56.078,
    "l": 50
  },
  "oklch": {
    "l": 0.50766,
    "c": 0.20887,
    "h": 300.8
  },
  "luminance": 0.11237
}

Semantic roles & 50–950 ramp

primary
#7C38C7
secondary
#AFCD8D
accent
#DF4898
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7C38C7

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

Preview Lab → · Contrast checker → · Palette generator →

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