#7C38B7#7C38B7

#7C38B7 is a mid, vivid violet. Relative luminance 0.105; OKLCH L 49.5% C 0.192 H 304.8°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#7C38B7
RGBrgb(124, 56, 183)
HSLhsl(272, 53%, 47%)
HSVhsv(272, 69%, 72%)
CMYKcmyk(32.2%, 69.4%, 0%, 28.2%)
CIE-LABlab(38.78, 52.44, -55.47)
CIE-LCHlch(38.78, 76.33, 313.39°)
OKLaboklab(49.54% 0.1096 -0.1576)
OKLCHoklch(49.54% 0.192 304.8)
XYZxyz(18.2717, 10.5324, 45.8609)
Luminance0.1053 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C38B7 #73B738
analogous
#3D38B7 #7C38B7 #B738B3
triadic
#7C38B7 #B77C38 #38B77C
tetradic
#7C38B7 #B73D38 #73B738 #38B3B7
square
#7C38B7 #B73D38 #73B738 #38B3B7
split-complementary
#7C38B7 #B3B738 #38B73D
monochromatic
#3C1B59 #5C2A88 #7C38B7 #9A5ECE #B78DDC

Accessibility & contrast

On white

6.76
#7C38B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#7C38B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C38B7
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C38B7#FFFFFF#000000##FFFFFF
##7C38B71.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABB
Deuteranopia (green-blind)
#005BB4
Tritanopia (blue-blind)
#715573
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7c38b7;
/* rgb */ color: rgb(124, 56, 183);
/* oklch */ color: oklch(49.5% 0.192 304.8);
Tailwind
colors: {
  custom: {
    50: '#a774cd',
    500: '#7c38b7',
    950: '#000000',
  },
}
SCSS
$custom: #7c38b7;
$custom-light: #a774cd;
$custom-dark: #000000;
JSON
{
  "hex": "#7c38b7",
  "rgb": {
    "r": 124,
    "g": 56,
    "b": 183
  },
  "hsl": {
    "h": 272.126,
    "s": 53.138,
    "l": 46.863
  },
  "oklch": {
    "l": 0.49541,
    "c": 0.19193,
    "h": 304.8
  },
  "luminance": 0.10532
}

Semantic roles & 50–950 ramp

primary
#7C38B7
secondary
#A3C784
accent
#DD4B8F
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7C38B7

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

Preview Lab → · Contrast checker → · Palette generator →

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