#7F38C5#7F38C5

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

Color values

HEX#7F38C5
RGBrgb(127, 56, 197)
HSLhsl(270, 56%, 50%)
HSVhsv(270, 72%, 77%)
CMYKcmyk(35.5%, 71.6%, 0%, 22.7%)
CIE-LABlab(40.20, 56.35, -61.36)
CIE-LCHlch(40.20, 83.31, 312.57°)
OKLaboklab(50.96% 0.1115 -0.1748)
OKLCHoklch(50.96% 0.207 302.5)
XYZxyz(20.2422, 11.3716, 53.9410)
Luminance0.1137 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F38C5 #7EC538
analogous
#3938C5 #7F38C5 #C538C4
triadic
#7F38C5 #C57F38 #38C57F
tetradic
#7F38C5 #C53938 #7EC538 #38C4C5
square
#7F38C5 #C53938 #7EC538 #38C4C5
split-complementary
#7F38C5 #C4C538 #38C539
monochromatic
#421D66 #602A95 #7F38C5 #9D67D4 #BC96E1

Accessibility & contrast

On white

6.41
#7F38C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7F38C5
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F38C5#FFFFFF#000000##FFFFFF
##7F38C51.006.413.276.41
#FFFFFF6.411.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC9
Deuteranopia (green-blind)
#005EC2
Tritanopia (blue-blind)
#715A7B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7f38c5;
/* rgb */ color: rgb(127, 56, 197);
/* oklch */ color: oklch(51.0% 0.207 302.5);
Tailwind
colors: {
  custom: {
    50: '#aa75d7',
    500: '#7f38c5',
    950: '#000000',
  },
}
SCSS
$custom: #7f38c5;
$custom-light: #aa75d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f38c5",
  "rgb": {
    "r": 127,
    "g": 56,
    "b": 197
  },
  "hsl": {
    "h": 270.213,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.50958,
    "c": 0.2073,
    "h": 302.5
  },
  "luminance": 0.11372
}

Semantic roles & 50–950 ramp

primary
#7F38C5
secondary
#ACCD8C
accent
#DF4993
background
#FAF7FD
surface
#F5EDFA
border
#CFC8D3
text
#110915
muted
#807B83

Preview Lab

Preview with #7F38C5

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

Preview Lab → · Contrast checker → · Palette generator →

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