#7C38AB#7C38AB

#7C38AB is a mid, vivid violet. Relative luminance 0.101; OKLCH L 48.7% C 0.179 H 308.3°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#7C38AB
RGBrgb(124, 56, 171)
HSLhsl(275, 51%, 45%)
HSVhsv(275, 67%, 67%)
CMYKcmyk(27.5%, 67.3%, 0%, 32.9%)
CIE-LABlab(37.94, 49.63, -49.72)
CIE-LCHlch(37.94, 70.25, 314.95°)
OKLaboklab(48.67% 0.111 -0.1407)
OKLCHoklch(48.67% 0.179 308.3)
XYZxyz(17.0755, 10.0540, 39.5613)
Luminance0.1005 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C38AB #67AB38
analogous
#4238AB #7C38AB #AB38A1
triadic
#7C38AB #AB7C38 #38AB7C
tetradic
#7C38AB #AB4238 #67AB38 #38A1AB
square
#7C38AB #AB4238 #67AB38 #38A1AB
split-complementary
#7C38AB #A1AB38 #38AB42
monochromatic
#391A4F #5B297D #7C38AB #9A58C8 #B686D7

Accessibility & contrast

On white

6.97
#7C38AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#7C38AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C38AB
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C38AB#FFFFFF#000000##FFFFFF
##7C38AB1.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AE
Deuteranopia (green-blind)
#215AA8
Tritanopia (blue-blind)
#75506D
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7c38ab;
/* rgb */ color: rgb(124, 56, 171);
/* oklch */ color: oklch(48.7% 0.179 308.3);
Tailwind
colors: {
  custom: {
    50: '#a673c5',
    500: '#7c38ab',
    950: '#000000',
  },
}
SCSS
$custom: #7c38ab;
$custom-light: #a673c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7c38ab",
  "rgb": {
    "r": 124,
    "g": 56,
    "b": 171
  },
  "hsl": {
    "h": 275.478,
    "s": 50.661,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48671,
    "c": 0.17917,
    "h": 308.3
  },
  "luminance": 0.10054
}

Semantic roles & 50–950 ramp

primary
#7C38AB
secondary
#99C17D
accent
#DA4E87
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7C38AB

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

Preview Lab → · Contrast checker → · Palette generator →

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