#7F37B2#7F37B2

#7F37B2 is a mid, vivid violet. Relative luminance 0.105; OKLCH L 49.4% C 0.189 H 307.7°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#7F37B2
RGBrgb(127, 55, 178)
HSLhsl(275, 53%, 46%)
HSVhsv(275, 69%, 70%)
CMYKcmyk(28.7%, 69.1%, 0%, 30.2%)
CIE-LABlab(38.65, 52.36, -52.70)
CIE-LCHlch(38.65, 74.29, 314.82°)
OKLaboklab(49.42% 0.1154 -0.1493)
OKLCHoklch(49.42% 0.189 307.7)
XYZxyz(18.1528, 10.4590, 43.1733)
Luminance0.1046 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F37B2 #6AB237
analogous
#4137B2 #7F37B2 #B237A7
triadic
#7F37B2 #B27F37 #37B27F
tetradic
#7F37B2 #B24137 #6AB237 #37A7B2
square
#7F37B2 #B24137 #6AB237 #37A7B2
split-complementary
#7F37B2 #A7B237 #37B241
monochromatic
#3C1A54 #5E2983 #7F37B2 #9D5ACC #B989DB

Accessibility & contrast

On white

6.79
#7F37B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#7F37B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F37B2
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F37B2#FFFFFF#000000##FFFFFF
##7F37B21.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B6
Deuteranopia (green-blind)
#185CAF
Tritanopia (blue-blind)
#775270
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7f37b2;
/* rgb */ color: rgb(127, 55, 178);
/* oklch */ color: oklch(49.4% 0.189 307.7);
Tailwind
colors: {
  custom: {
    50: '#a873ca',
    500: '#7f37b2',
    950: '#000000',
  },
}
SCSS
$custom: #7f37b2;
$custom-light: #a873ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7f37b2",
  "rgb": {
    "r": 127,
    "g": 55,
    "b": 178
  },
  "hsl": {
    "h": 275.122,
    "s": 52.79,
    "l": 45.686
  },
  "oklch": {
    "l": 0.49422,
    "c": 0.18871,
    "h": 307.7
  },
  "luminance": 0.10459
}

Semantic roles & 50–950 ramp

primary
#7F37B2
secondary
#9DC580
accent
#DC4C88
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F37B2

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

Preview Lab → · Contrast checker → · Palette generator →

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