#7F38C4#7F38C4

#7F38C4 is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 50.9% C 0.206 H 302.8°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#7F38C4
RGBrgb(127, 56, 196)
HSLhsl(270, 56%, 49%)
HSVhsv(270, 71%, 77%)
CMYKcmyk(35.2%, 71.4%, 0%, 23.1%)
CIE-LABlab(40.12, 56.11, -60.90)
CIE-LCHlch(40.12, 82.81, 312.66°)
OKLaboklab(50.88% 0.1116 -0.1734)
OKLCHoklch(50.88% 0.206 302.8)
XYZxyz(20.1280, 11.3259, 53.3396)
Luminance0.1133 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F38C4 #7DC438
analogous
#3938C4 #7F38C4 #C438C3
triadic
#7F38C4 #C47F38 #38C47F
tetradic
#7F38C4 #C43938 #7DC438 #38C3C4
square
#7F38C4 #C43938 #7DC438 #38C3C4
split-complementary
#7F38C4 #C3C438 #38C439
monochromatic
#411D65 #602A94 #7F38C4 #9D66D3 #BC96E1

Accessibility & contrast

On white

6.43
#7F38C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#7F38C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F38C4
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F38C4#FFFFFF#000000##FFFFFF
##7F38C41.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC8
Deuteranopia (green-blind)
#005EC1
Tritanopia (blue-blind)
#715A7A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7f38c4;
/* rgb */ color: rgb(127, 56, 196);
/* oklch */ color: oklch(50.9% 0.206 302.8);
Tailwind
colors: {
  custom: {
    50: '#aa75d7',
    500: '#7f38c4',
    950: '#000000',
  },
}
SCSS
$custom: #7f38c4;
$custom-light: #aa75d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f38c4",
  "rgb": {
    "r": 127,
    "g": 56,
    "b": 196
  },
  "hsl": {
    "h": 270.429,
    "s": 55.556,
    "l": 49.412
  },
  "oklch": {
    "l": 0.50881,
    "c": 0.20626,
    "h": 302.8
  },
  "luminance": 0.11326
}

Semantic roles & 50–950 ramp

primary
#7F38C4
secondary
#ABCC8C
accent
#DF4993
background
#FAF7FD
surface
#F5EDFA
border
#CFC8D3
text
#110914
muted
#807B83

Preview Lab

Preview with #7F38C4

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

Preview Lab → · Contrast checker → · Palette generator →

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