#7F37C1#7F37C1

#7F37C1 is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.5% C 0.204 H 303.6°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#7F37C1
RGBrgb(127, 55, 193)
HSLhsl(271, 56%, 49%)
HSVhsv(271, 72%, 76%)
CMYKcmyk(34.2%, 71.5%, 0%, 24.3%)
CIE-LABlab(39.74, 55.85, -59.77)
CIE-LCHlch(39.74, 81.80, 313.06°)
OKLaboklab(50.54% 0.1132 -0.1701)
OKLCHoklch(50.54% 0.204 303.6)
XYZxyz(19.7420, 11.0947, 51.5432)
Luminance0.1109 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F37C1 #79C137
analogous
#3A37C1 #7F37C1 #C137BE
triadic
#7F37C1 #C17F37 #37C17F
tetradic
#7F37C1 #C13A37 #79C137 #37BEC1
square
#7F37C1 #C13A37 #79C137 #37BEC1
split-complementary
#7F37C1 #BEC137 #37C13A
monochromatic
#401C62 #602991 #7F37C1 #9D63D2 #BB92E0

Accessibility & contrast

On white

6.52
#7F37C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#7F37C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F37C1
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F37C1#FFFFFF#000000##FFFFFF
##7F37C11.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC5
Deuteranopia (green-blind)
#005DBE
Tritanopia (blue-blind)
#725878
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7f37c1;
/* rgb */ color: rgb(127, 55, 193);
/* oklch */ color: oklch(50.5% 0.204 303.6);
Tailwind
colors: {
  custom: {
    50: '#aa74d5',
    500: '#7f37c1',
    950: '#000000',
  },
}
SCSS
$custom: #7f37c1;
$custom-light: #aa74d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f37c1",
  "rgb": {
    "r": 127,
    "g": 55,
    "b": 193
  },
  "hsl": {
    "h": 271.304,
    "s": 55.645,
    "l": 48.627
  },
  "oklch": {
    "l": 0.50538,
    "c": 0.20431,
    "h": 303.6
  },
  "luminance": 0.11095
}

Semantic roles & 50–950 ramp

primary
#7F37C1
secondary
#A8CB89
accent
#DF4991
background
#FAF7FD
surface
#F5EDFA
border
#CFC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7F37C1

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

Preview Lab → · Contrast checker → · Palette generator →

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