#7F37C4#7F37C4

#7F37C4 is a mid, highly saturated violet. Relative luminance 0.112; OKLCH L 50.8% C 0.207 H 302.9°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#7F37C4
RGBrgb(127, 55, 196)
HSLhsl(271, 56%, 49%)
HSVhsv(271, 72%, 77%)
CMYKcmyk(35.2%, 71.9%, 0%, 23.1%)
CIE-LABlab(39.97, 56.56, -61.15)
CIE-LCHlch(39.97, 83.30, 312.77°)
OKLaboklab(50.77% 0.1126 -0.1742)
OKLCHoklch(50.77% 0.207 302.9)
XYZxyz(20.0800, 11.2299, 53.3236)
Luminance0.1123 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F37C4 #7CC437
analogous
#3937C4 #7F37C4 #C437C3
triadic
#7F37C4 #C47F37 #37C47F
tetradic
#7F37C4 #C43937 #7CC437 #37C3C4
square
#7F37C4 #C43937 #7CC437 #37C3C4
split-complementary
#7F37C4 #C3C437 #37C439
monochromatic
#411C64 #602A94 #7F37C4 #9D65D4 #BC94E1

Accessibility & contrast

On white

6.47
#7F37C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#7F37C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F37C4
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F37C4#FFFFFF#000000##FFFFFF
##7F37C41.006.473.256.47
#FFFFFF6.471.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC8
Deuteranopia (green-blind)
#005EC1
Tritanopia (blue-blind)
#71597A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7f37c4;
/* rgb */ color: rgb(127, 55, 196);
/* oklch */ color: oklch(50.8% 0.207 302.9);
Tailwind
colors: {
  custom: {
    50: '#aa74d7',
    500: '#7f37c4',
    950: '#000000',
  },
}
SCSS
$custom: #7f37c4;
$custom-light: #aa74d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f37c4",
  "rgb": {
    "r": 127,
    "g": 55,
    "b": 196
  },
  "hsl": {
    "h": 270.638,
    "s": 56.175,
    "l": 49.216
  },
  "oklch": {
    "l": 0.50769,
    "c": 0.20742,
    "h": 302.9
  },
  "luminance": 0.1123
}

Semantic roles & 50–950 ramp

primary
#7F37C4
secondary
#ABCC8B
accent
#DF4892
background
#FAF7FD
surface
#F5EDFA
border
#CFC8D3
text
#110914
muted
#807B83

Preview Lab

Preview with #7F37C4

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

Preview Lab → · Contrast checker → · Palette generator →

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