#7F38C6#7F38C6

#7F38C6 is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 51.0% C 0.208 H 302.3°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#7F38C6
RGBrgb(127, 56, 198)
HSLhsl(270, 56%, 50%)
HSVhsv(270, 72%, 78%)
CMYKcmyk(35.9%, 71.7%, 0%, 22.4%)
CIE-LABlab(40.27, 56.59, -61.82)
CIE-LCHlch(40.27, 83.81, 312.47°)
OKLaboklab(51.04% 0.1113 -0.1761)
OKLCHoklch(51.04% 0.208 302.3)
XYZxyz(20.3572, 11.4175, 54.5465)
Luminance0.1142 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F38C6 #7FC638
analogous
#3838C6 #7F38C6 #C638C6
triadic
#7F38C6 #C67F38 #38C67F
tetradic
#7F38C6 #C63838 #7FC638 #38C6C6
square
#7F38C6 #C63838 #7FC638 #38C6C6
split-complementary
#7F38C6 #C6C638 #38C638
monochromatic
#421D67 #602B96 #7F38C6 #9E67D4 #BC97E2

Accessibility & contrast

On white

6.40
#7F38C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#7F38C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F38C6
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F38C6#FFFFFF#000000##FFFFFF
##7F38C61.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f38c6;
/* rgb */ color: rgb(127, 56, 198);
/* oklch */ color: oklch(51.0% 0.208 302.3);
Tailwind
colors: {
  custom: {
    50: '#aa75d8',
    500: '#7f38c6',
    950: '#000000',
  },
}
SCSS
$custom: #7f38c6;
$custom-light: #aa75d8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f38c6",
  "rgb": {
    "r": 127,
    "g": 56,
    "b": 198
  },
  "hsl": {
    "h": 270,
    "s": 55.906,
    "l": 49.804
  },
  "oklch": {
    "l": 0.51036,
    "c": 0.20835,
    "h": 302.3
  },
  "luminance": 0.11418
}

Semantic roles & 50–950 ramp

primary
#7F38C6
secondary
#ADCD8D
accent
#DF4994
background
#FAF7FD
surface
#F5EDFA
border
#CFC8D3
text
#110915
muted
#807B83

Preview Lab

Preview with #7F38C6

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

Preview Lab → · Contrast checker → · Palette generator →

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