#7F37B3#7F37B3

#7F37B3 is a mid, vivid violet. Relative luminance 0.105; OKLCH L 49.5% C 0.190 H 307.4°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#7F37B3
RGBrgb(127, 55, 179)
HSLhsl(275, 53%, 46%)
HSVhsv(275, 69%, 70%)
CMYKcmyk(29.1%, 69.3%, 0%, 29.8%)
CIE-LABlab(38.72, 52.59, -53.18)
CIE-LCHlch(38.72, 74.79, 314.68°)
OKLaboklab(49.5% 0.1153 -0.1507)
OKLCHoklch(49.5% 0.19 307.4)
XYZxyz(18.2536, 10.4993, 43.7040)
Luminance0.1050 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F37B3 #6BB337
analogous
#4137B3 #7F37B3 #B337A9
triadic
#7F37B3 #B37F37 #37B37F
tetradic
#7F37B3 #B34137 #6BB337 #37A9B3
square
#7F37B3 #B34137 #6BB337 #37A9B3
split-complementary
#7F37B3 #A9B337 #37B341
monochromatic
#3D1A55 #5E2984 #7F37B3 #9D5BCD #B98ADB

Accessibility & contrast

On white

6.77
#7F37B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#7F37B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F37B3
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F37B3#FFFFFF#000000##FFFFFF
##7F37B31.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B7
Deuteranopia (green-blind)
#165CB0
Tritanopia (blue-blind)
#775371
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7f37b3;
/* rgb */ color: rgb(127, 55, 179);
/* oklch */ color: oklch(49.5% 0.190 307.4);
Tailwind
colors: {
  custom: {
    50: '#a873ca',
    500: '#7f37b3',
    950: '#000000',
  },
}
SCSS
$custom: #7f37b3;
$custom-light: #a873ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7f37b3",
  "rgb": {
    "r": 127,
    "g": 55,
    "b": 179
  },
  "hsl": {
    "h": 274.839,
    "s": 52.991,
    "l": 45.882
  },
  "oklch": {
    "l": 0.49495,
    "c": 0.18976,
    "h": 307.4
  },
  "luminance": 0.10499
}

Semantic roles & 50–950 ramp

primary
#7F37B3
secondary
#9DC581
accent
#DC4B88
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F37B3

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

Preview Lab → · Contrast checker → · Palette generator →

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