#7F37C5#7F37C5

#7F37C5 is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 50.8% C 0.208 H 302.6°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#7F37C5
RGBrgb(127, 55, 197)
HSLhsl(270, 56%, 49%)
HSVhsv(270, 72%, 77%)
CMYKcmyk(35.5%, 72.1%, 0%, 22.7%)
CIE-LABlab(40.04, 56.80, -61.61)
CIE-LCHlch(40.04, 83.80, 312.67°)
OKLaboklab(50.85% 0.1124 -0.1755)
OKLCHoklch(50.85% 0.208 302.6)
XYZxyz(20.1942, 11.2756, 53.9250)
Luminance0.1128 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F37C5 #7DC537
analogous
#3837C5 #7F37C5 #C537C4
triadic
#7F37C5 #C57F37 #37C57F
tetradic
#7F37C5 #C53837 #7DC537 #37C4C5
square
#7F37C5 #C53837 #7DC537 #37C4C5
split-complementary
#7F37C5 #C4C537 #37C538
monochromatic
#411C65 #602A95 #7F37C5 #9D65D4 #BC95E1

Accessibility & contrast

On white

6.45
#7F37C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#7F37C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F37C5
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F37C5#FFFFFF#000000##FFFFFF
##7F37C51.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f37c5;
/* rgb */ color: rgb(127, 55, 197);
/* oklch */ color: oklch(50.8% 0.208 302.6);
Tailwind
colors: {
  custom: {
    50: '#aa74d7',
    500: '#7f37c5',
    950: '#000000',
  },
}
SCSS
$custom: #7f37c5;
$custom-light: #aa74d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f37c5",
  "rgb": {
    "r": 127,
    "g": 55,
    "b": 197
  },
  "hsl": {
    "h": 270.423,
    "s": 56.349,
    "l": 49.412
  },
  "oklch": {
    "l": 0.50846,
    "c": 0.20846,
    "h": 302.6
  },
  "luminance": 0.11276
}

Semantic roles & 50–950 ramp

primary
#7F37C5
secondary
#ABCD8B
accent
#E04893
background
#FAF7FD
surface
#F5EDFA
border
#CFC8D3
text
#110915
muted
#807B83

Preview Lab

Preview with #7F37C5

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

Preview Lab → · Contrast checker → · Palette generator →

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