#7C38C5#7C38C5

#7C38C5 is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.6% C 0.207 H 301.3°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#7C38C5
RGBrgb(124, 56, 197)
HSLhsl(269, 56%, 50%)
HSVhsv(269, 72%, 77%)
CMYKcmyk(37.1%, 71.6%, 0%, 22.7%)
CIE-LABlab(39.82, 55.79, -61.99)
CIE-LCHlch(39.82, 83.40, 311.99°)
OKLaboklab(50.61% 0.1073 -0.1767)
OKLCHoklch(50.61% 0.207 301.3)
XYZxyz(19.8019, 11.1445, 53.9204)
Luminance0.1114 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C38C5 #81C538
analogous
#383BC5 #7C38C5 #C238C5
triadic
#7C38C5 #C57C38 #38C57C
tetradic
#7C38C5 #C5383B #81C538 #38C5C2
square
#7C38C5 #C5383B #81C538 #38C5C2
split-complementary
#7C38C5 #C5C238 #3BC538
monochromatic
#401D66 #5E2A95 #7C38C5 #9B67D4 #BA96E1

Accessibility & contrast

On white

6.50
#7C38C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#7C38C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C38C5
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C38C5#FFFFFF#000000##FFFFFF
##7C38C51.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC9
Deuteranopia (green-blind)
#005DC2
Tritanopia (blue-blind)
#6C5A7B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7c38c5;
/* rgb */ color: rgb(124, 56, 197);
/* oklch */ color: oklch(50.6% 0.207 301.3);
Tailwind
colors: {
  custom: {
    50: '#a874d8',
    500: '#7c38c5',
    950: '#000000',
  },
}
SCSS
$custom: #7c38c5;
$custom-light: #a874d8;
$custom-dark: #000000;
JSON
{
  "hex": "#7c38c5",
  "rgb": {
    "r": 124,
    "g": 56,
    "b": 197
  },
  "hsl": {
    "h": 268.936,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.50609,
    "c": 0.20676,
    "h": 301.3
  },
  "luminance": 0.11145
}

Semantic roles & 50–950 ramp

primary
#7C38C5
secondary
#AECD8C
accent
#DF4997
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7C38C5

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

Preview Lab → · Contrast checker → · Palette generator →

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