#7F38C7#7F38C7

#7F38C7 is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 51.1% C 0.209 H 302.0°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#7F38C7
RGBrgb(127, 56, 199)
HSLhsl(270, 56%, 50%)
HSVhsv(270, 72%, 78%)
CMYKcmyk(36.2%, 71.9%, 0%, 22%)
CIE-LABlab(40.35, 56.83, -62.27)
CIE-LCHlch(40.35, 84.31, 312.38°)
OKLaboklab(51.11% 0.1111 -0.1775)
OKLCHoklch(51.11% 0.209 302)
XYZxyz(20.4729, 11.4638, 55.1559)
Luminance0.1146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F38C7 #80C738
analogous
#3839C7 #7F38C7 #C638C7
triadic
#7F38C7 #C77F38 #38C77F
tetradic
#7F38C7 #C73839 #80C738 #38C7C6
square
#7F38C7 #C73839 #80C738 #38C7C6
split-complementary
#7F38C7 #C7C638 #39C738
monochromatic
#421D67 #612B97 #7F38C7 #9E68D4 #BC98E2

Accessibility & contrast

On white

6.38
#7F38C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#7F38C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F38C7
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F38C7#FFFFFF#000000##FFFFFF
##7F38C71.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECB
Deuteranopia (green-blind)
#005EC4
Tritanopia (blue-blind)
#705B7C
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7f38c7;
/* rgb */ color: rgb(127, 56, 199);
/* oklch */ color: oklch(51.1% 0.209 302.0);
Tailwind
colors: {
  custom: {
    50: '#aa75d9',
    500: '#7f38c7',
    950: '#000000',
  },
}
SCSS
$custom: #7f38c7;
$custom-light: #aa75d9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f38c7",
  "rgb": {
    "r": 127,
    "g": 56,
    "b": 199
  },
  "hsl": {
    "h": 269.79,
    "s": 56.078,
    "l": 50
  },
  "oklch": {
    "l": 0.51113,
    "c": 0.20939,
    "h": 302
  },
  "luminance": 0.11464
}

Semantic roles & 50–950 ramp

primary
#7F38C7
secondary
#AECD8D
accent
#DF4894
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #7F38C7

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

Preview Lab → · Contrast checker → · Palette generator →

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