#7F37BA#7F37BA

#7F37BA is a mid, vivid violet. Relative luminance 0.108; OKLCH L 50.0% C 0.197 H 305.5°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#7F37BA
RGBrgb(127, 55, 186)
HSLhsl(273, 54%, 47%)
HSVhsv(273, 70%, 73%)
CMYKcmyk(31.7%, 70.4%, 0%, 27.1%)
CIE-LABlab(39.22, 54.21, -56.50)
CIE-LCHlch(39.22, 78.30, 313.82°)
OKLaboklab(50.01% 0.1143 -0.1605)
OKLCHoklch(50.01% 0.197 305.5)
XYZxyz(18.9795, 10.7897, 47.5276)
Luminance0.1079 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F37BA #72BA37
analogous
#3D37BA #7F37BA #BA37B4
triadic
#7F37BA #BA7F37 #37BA7F
tetradic
#7F37BA #BA3D37 #72BA37 #37B4BA
square
#7F37BA #BA3D37 #72BA37 #37B4BA
split-complementary
#7F37BA #B4BA37 #37BA3D
monochromatic
#3E1B5C #5F298B #7F37BA #9D5FD0 #BA8EDE

Accessibility & contrast

On white

6.65
#7F37BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#7F37BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F37BA
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F37BA#FFFFFF#000000##FFFFFF
##7F37BA1.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABE
Deuteranopia (green-blind)
#005DB7
Tritanopia (blue-blind)
#745575
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7f37ba;
/* rgb */ color: rgb(127, 55, 186);
/* oklch */ color: oklch(50.0% 0.197 305.5);
Tailwind
colors: {
  custom: {
    50: '#a974d0',
    500: '#7f37ba',
    950: '#000000',
  },
}
SCSS
$custom: #7f37ba;
$custom-light: #a974d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f37ba",
  "rgb": {
    "r": 127,
    "g": 55,
    "b": 186
  },
  "hsl": {
    "h": 272.977,
    "s": 54.357,
    "l": 47.255
  },
  "oklch": {
    "l": 0.50009,
    "c": 0.19704,
    "h": 305.5
  },
  "luminance": 0.1079
}

Semantic roles & 50–950 ramp

primary
#7F37BA
secondary
#A3C885
accent
#DE4A8D
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7F37BA

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

Preview Lab → · Contrast checker → · Palette generator →

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