#7F37B8#7F37B8

#7F37B8 is a mid, vivid violet. Relative luminance 0.107; OKLCH L 49.9% C 0.195 H 306.0°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#7F37B8
RGBrgb(127, 55, 184)
HSLhsl(273, 54%, 47%)
HSVhsv(273, 70%, 72%)
CMYKcmyk(31%, 70.1%, 0%, 27.8%)
CIE-LABlab(39.08, 53.75, -55.56)
CIE-LCHlch(39.08, 77.30, 314.05°)
OKLaboklab(49.86% 0.1146 -0.1577)
OKLCHoklch(49.86% 0.195 306)
XYZxyz(18.7684, 10.7053, 46.4157)
Luminance0.1071 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F37B8 #70B837
analogous
#3E37B8 #7F37B8 #B837B1
triadic
#7F37B8 #B87F37 #37B87F
tetradic
#7F37B8 #B83E37 #70B837 #37B1B8
square
#7F37B8 #B83E37 #70B837 #37B1B8
split-complementary
#7F37B8 #B1B837 #37B83E
monochromatic
#3E1B5A #5E2989 #7F37B8 #9D5DCF #B98DDD

Accessibility & contrast

On white

6.69
#7F37B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#7F37B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F37B8
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F37B8#FFFFFF#000000##FFFFFF
##7F37B81.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABC
Deuteranopia (green-blind)
#055CB5
Tritanopia (blue-blind)
#755474
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7f37b8;
/* rgb */ color: rgb(127, 55, 184);
/* oklch */ color: oklch(49.9% 0.195 306.0);
Tailwind
colors: {
  custom: {
    50: '#a974ce',
    500: '#7f37b8',
    950: '#000000',
  },
}
SCSS
$custom: #7f37b8;
$custom-light: #a974ce;
$custom-dark: #000000;
JSON
{
  "hex": "#7f37b8",
  "rgb": {
    "r": 127,
    "g": 55,
    "b": 184
  },
  "hsl": {
    "h": 273.488,
    "s": 53.975,
    "l": 46.863
  },
  "oklch": {
    "l": 0.49861,
    "c": 0.19495,
    "h": 306
  },
  "luminance": 0.10705
}

Semantic roles & 50–950 ramp

primary
#7F37B8
secondary
#A1C784
accent
#DD4A8B
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7F37B8

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

Preview Lab → · Contrast checker → · Palette generator →

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