#7F37B7#7F37B7

#7F37B7 is a mid, vivid violet. Relative luminance 0.107; OKLCH L 49.8% C 0.194 H 306.3°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#7F37B7
RGBrgb(127, 55, 183)
HSLhsl(274, 54%, 47%)
HSVhsv(274, 70%, 72%)
CMYKcmyk(30.6%, 69.9%, 0%, 28.2%)
CIE-LABlab(39.01, 53.52, -55.08)
CIE-LCHlch(39.01, 76.80, 314.17°)
OKLaboklab(49.79% 0.1147 -0.1563)
OKLCHoklch(49.79% 0.194 306.3)
XYZxyz(18.6640, 10.6635, 45.8656)
Luminance0.1066 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F37B7 #6FB737
analogous
#3F37B7 #7F37B7 #B737AF
triadic
#7F37B7 #B77F37 #37B77F
tetradic
#7F37B7 #B73F37 #6FB737 #37AFB7
square
#7F37B7 #B73F37 #6FB737 #37AFB7
split-complementary
#7F37B7 #AFB737 #37B73F
monochromatic
#3E1B59 #5E2988 #7F37B7 #9D5DCE #B98CDC

Accessibility & contrast

On white

6.70
#7F37B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#7F37B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F37B7
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F37B7#FFFFFF#000000##FFFFFF
##7F37B71.006.703.136.70
#FFFFFF6.701.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABB
Deuteranopia (green-blind)
#0A5CB4
Tritanopia (blue-blind)
#755473
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7f37b7;
/* rgb */ color: rgb(127, 55, 183);
/* oklch */ color: oklch(49.8% 0.194 306.3);
Tailwind
colors: {
  custom: {
    50: '#a974cd',
    500: '#7f37b7',
    950: '#000000',
  },
}
SCSS
$custom: #7f37b7;
$custom-light: #a974cd;
$custom-dark: #000000;
JSON
{
  "hex": "#7f37b7",
  "rgb": {
    "r": 127,
    "g": 55,
    "b": 183
  },
  "hsl": {
    "h": 273.75,
    "s": 53.782,
    "l": 46.667
  },
  "oklch": {
    "l": 0.49787,
    "c": 0.19391,
    "h": 306.3
  },
  "luminance": 0.10663
}

Semantic roles & 50–950 ramp

primary
#7F37B7
secondary
#A1C783
accent
#DD4B8B
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7F37B7

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

Preview Lab → · Contrast checker → · Palette generator →

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