#7C38BA#7C38BA

#7C38BA is a mid, vivid violet. Relative luminance 0.107; OKLCH L 49.8% C 0.195 H 304.0°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#7C38BA
RGBrgb(124, 56, 186)
HSLhsl(271, 54%, 47%)
HSVhsv(271, 70%, 73%)
CMYKcmyk(33.3%, 69.9%, 0%, 27.1%)
CIE-LABlab(39.00, 53.15, -56.88)
CIE-LCHlch(39.00, 77.85, 313.06°)
OKLaboklab(49.77% 0.1091 -0.1617)
OKLCHoklch(49.77% 0.195 304)
XYZxyz(18.5873, 10.6587, 47.5230)
Luminance0.1066 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C38BA #76BA38
analogous
#3B38BA #7C38BA #BA38B7
triadic
#7C38BA #BA7C38 #38BA7C
tetradic
#7C38BA #BA3B38 #76BA38 #38B7BA
square
#7C38BA #BA3B38 #76BA38 #38B7BA
split-complementary
#7C38BA #B7BA38 #38BA3B
monochromatic
#3D1C5C #5D2A8B #7C38BA #9A60CF #B88FDD

Accessibility & contrast

On white

6.71
#7C38BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#7C38BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C38BA
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C38BA#FFFFFF#000000##FFFFFF
##7C38BA1.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABE
Deuteranopia (green-blind)
#005CB7
Tritanopia (blue-blind)
#705675
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7c38ba;
/* rgb */ color: rgb(124, 56, 186);
/* oklch */ color: oklch(49.8% 0.195 304.0);
Tailwind
colors: {
  custom: {
    50: '#a774d0',
    500: '#7c38ba',
    950: '#000000',
  },
}
SCSS
$custom: #7c38ba;
$custom-light: #a774d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7c38ba",
  "rgb": {
    "r": 124,
    "g": 56,
    "b": 186
  },
  "hsl": {
    "h": 271.385,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.49765,
    "c": 0.19511,
    "h": 304
  },
  "luminance": 0.10659
}

Semantic roles & 50–950 ramp

primary
#7C38BA
secondary
#A5C886
accent
#DD4B91
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7C38BA

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

Preview Lab → · Contrast checker → · Palette generator →

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