#7C38C4#7C38C4

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

Color values

HEX#7C38C4
RGBrgb(124, 56, 196)
HSLhsl(269, 56%, 49%)
HSVhsv(269, 71%, 77%)
CMYKcmyk(36.7%, 71.4%, 0%, 23.1%)
CIE-LABlab(39.75, 55.55, -61.53)
CIE-LCHlch(39.75, 82.90, 312.08°)
OKLaboklab(50.53% 0.1075 -0.1754)
OKLCHoklch(50.53% 0.206 301.5)
XYZxyz(19.6878, 11.0989, 53.3189)
Luminance0.1110 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C38C4 #80C438
analogous
#383AC4 #7C38C4 #C238C4
triadic
#7C38C4 #C47C38 #38C47C
tetradic
#7C38C4 #C4383A #80C438 #38C4C2
square
#7C38C4 #C4383A #80C438 #38C4C2
split-complementary
#7C38C4 #C4C238 #3AC438
monochromatic
#401D65 #5E2A94 #7C38C4 #9B66D3 #BA96E1

Accessibility & contrast

On white

6.52
#7C38C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7C38C4
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C38C4#FFFFFF#000000##FFFFFF
##7C38C41.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC8
Deuteranopia (green-blind)
#005DC1
Tritanopia (blue-blind)
#6C5A7A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7c38c4;
/* rgb */ color: rgb(124, 56, 196);
/* oklch */ color: oklch(50.5% 0.206 301.5);
Tailwind
colors: {
  custom: {
    50: '#a874d7',
    500: '#7c38c4',
    950: '#000000',
  },
}
SCSS
$custom: #7c38c4;
$custom-light: #a874d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7c38c4",
  "rgb": {
    "r": 124,
    "g": 56,
    "b": 196
  },
  "hsl": {
    "h": 269.143,
    "s": 55.556,
    "l": 49.412
  },
  "oklch": {
    "l": 0.50531,
    "c": 0.2057,
    "h": 301.5
  },
  "luminance": 0.11099
}

Semantic roles & 50–950 ramp

primary
#7C38C4
secondary
#ADCC8C
accent
#DF4996
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7C38C4

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

Preview Lab → · Contrast checker → · Palette generator →

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