#7F37AB#7F37AB

#7F37AB is a mid, vivid violet. Relative luminance 0.102; OKLCH L 48.9% C 0.181 H 309.8°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#7F37AB
RGBrgb(127, 55, 171)
HSLhsl(277, 51%, 44%)
HSVhsv(277, 68%, 67%)
CMYKcmyk(25.7%, 67.8%, 0%, 32.9%)
CIE-LABlab(38.17, 50.77, -49.32)
CIE-LCHlch(38.17, 70.78, 315.83°)
OKLaboklab(48.93% 0.1161 -0.1394)
OKLCHoklch(48.93% 0.181 309.8)
XYZxyz(17.4678, 10.1850, 39.5659)
Luminance0.1018 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F37AB #63AB37
analogous
#4537AB #7F37AB #AB379D
triadic
#7F37AB #AB7F37 #37AB7F
tetradic
#7F37AB #AB4537 #63AB37 #379DAB
square
#7F37AB #AB4537 #63AB37 #379DAB
split-complementary
#7F37AB #9DAB37 #37AB45
monochromatic
#3A194E #5D287D #7F37AB #9D56C9 #B885D8

Accessibility & contrast

On white

6.91
#7F37AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#7F37AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F37AB
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F37AB#FFFFFF#000000##FFFFFF
##7F37AB1.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AE
Deuteranopia (green-blind)
#245BA8
Tritanopia (blue-blind)
#794F6C
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7f37ab;
/* rgb */ color: rgb(127, 55, 171);
/* oklch */ color: oklch(48.9% 0.181 309.8);
Tailwind
colors: {
  custom: {
    50: '#a873c5',
    500: '#7f37ab',
    950: '#000000',
  },
}
SCSS
$custom: #7f37ab;
$custom-light: #a873c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f37ab",
  "rgb": {
    "r": 127,
    "g": 55,
    "b": 171
  },
  "hsl": {
    "h": 277.241,
    "s": 51.327,
    "l": 44.314
  },
  "oklch": {
    "l": 0.48925,
    "c": 0.18142,
    "h": 309.8
  },
  "luminance": 0.10185
}

Semantic roles & 50–950 ramp

primary
#7F37AB
secondary
#97C17C
accent
#DB4D83
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F37AB

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

Preview Lab → · Contrast checker → · Palette generator →

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