#7F37B5#7F37B5

#7F37B5 is a mid, vivid violet. Relative luminance 0.106; OKLCH L 49.6% C 0.192 H 306.8°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#7F37B5
RGBrgb(127, 55, 181)
HSLhsl(274, 53%, 46%)
HSVhsv(274, 70%, 71%)
CMYKcmyk(29.8%, 69.6%, 0%, 29%)
CIE-LABlab(38.87, 53.05, -54.13)
CIE-LCHlch(38.87, 75.80, 314.42°)
OKLaboklab(49.64% 0.115 -0.1535)
OKLCHoklch(49.64% 0.192 306.8)
XYZxyz(18.4573, 10.5808, 44.7771)
Luminance0.1058 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F37B5 #6DB537
analogous
#4037B5 #7F37B5 #B537AC
triadic
#7F37B5 #B57F37 #37B57F
tetradic
#7F37B5 #B54037 #6DB537 #37ACB5
square
#7F37B5 #B54037 #6DB537 #37ACB5
split-complementary
#7F37B5 #ACB537 #37B540
monochromatic
#3D1A57 #5E2986 #7F37B5 #9D5CCD #B98BDC

Accessibility & contrast

On white

6.74
#7F37B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#7F37B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F37B5
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F37B5#FFFFFF#000000##FFFFFF
##7F37B51.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B9
Deuteranopia (green-blind)
#115CB2
Tritanopia (blue-blind)
#765372
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7f37b5;
/* rgb */ color: rgb(127, 55, 181);
/* oklch */ color: oklch(49.6% 0.192 306.8);
Tailwind
colors: {
  custom: {
    50: '#a974cc',
    500: '#7f37b5',
    950: '#000000',
  },
}
SCSS
$custom: #7f37b5;
$custom-light: #a974cc;
$custom-dark: #000000;
JSON
{
  "hex": "#7f37b5",
  "rgb": {
    "r": 127,
    "g": 55,
    "b": 181
  },
  "hsl": {
    "h": 274.286,
    "s": 53.39,
    "l": 46.275
  },
  "oklch": {
    "l": 0.4964,
    "c": 0.19183,
    "h": 306.8
  },
  "luminance": 0.10581
}

Semantic roles & 50–950 ramp

primary
#7F37B5
secondary
#9FC682
accent
#DD4B89
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F37B5

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

Preview Lab → · Contrast checker → · Palette generator →

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