#7C38BB#7C38BB

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

Color values

HEX#7C38BB
RGBrgb(124, 56, 187)
HSLhsl(271, 54%, 48%)
HSVhsv(271, 70%, 73%)
CMYKcmyk(33.7%, 70.1%, 0%, 26.7%)
CIE-LABlab(39.07, 53.39, -57.35)
CIE-LCHlch(39.07, 78.36, 312.95°)
OKLaboklab(49.84% 0.109 -0.1631)
OKLCHoklch(49.84% 0.196 303.7)
XYZxyz(18.6939, 10.7013, 48.0848)
Luminance0.1070 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C38BB #77BB38
analogous
#3B38BB #7C38BB #BB38B8
triadic
#7C38BB #BB7C38 #38BB7C
tetradic
#7C38BB #BB3B38 #77BB38 #38B8BB
square
#7C38BB #BB3B38 #77BB38 #38B8BB
split-complementary
#7C38BB #B8BB38 #38BB3B
monochromatic
#3E1C5D #5D2A8C #7C38BB #9A61D0 #B890DE

Accessibility & contrast

On white

6.69
#7C38BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#7C38BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C38BB
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C38BB#FFFFFF#000000##FFFFFF
##7C38BB1.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBF
Deuteranopia (green-blind)
#005CB8
Tritanopia (blue-blind)
#705775
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7c38bb;
/* rgb */ color: rgb(124, 56, 187);
/* oklch */ color: oklch(49.8% 0.196 303.7);
Tailwind
colors: {
  custom: {
    50: '#a774d0',
    500: '#7c38bb',
    950: '#000000',
  },
}
SCSS
$custom: #7c38bb;
$custom-light: #a774d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7c38bb",
  "rgb": {
    "r": 124,
    "g": 56,
    "b": 187
  },
  "hsl": {
    "h": 271.145,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.49841,
    "c": 0.19618,
    "h": 303.7
  },
  "luminance": 0.10701
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7C38BB

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

Preview Lab → · Contrast checker → · Palette generator →

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