#7F37AC#7F37AC

#7F37AC is a mid, vivid violet. Relative luminance 0.102; OKLCH L 49.0% C 0.182 H 309.5°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#7F37AC
RGBrgb(127, 55, 172)
HSLhsl(277, 52%, 45%)
HSVhsv(277, 68%, 67%)
CMYKcmyk(26.2%, 68%, 0%, 32.5%)
CIE-LABlab(38.24, 51.00, -49.81)
CIE-LCHlch(38.24, 71.28, 315.68°)
OKLaboklab(49% 0.116 -0.1408)
OKLCHoklch(49% 0.182 309.5)
XYZxyz(17.5635, 10.2233, 40.0698)
Luminance0.1022 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F37AC #64AC37
analogous
#4537AC #7F37AC #AC379F
triadic
#7F37AC #AC7F37 #37AC7F
tetradic
#7F37AC #AC4537 #64AC37 #379FAC
square
#7F37AC #AC4537 #64AC37 #379FAC
split-complementary
#7F37AC #9FAC37 #37AC45
monochromatic
#3B194F #5D287E #7F37AC #9D57C9 #B885D8

Accessibility & contrast

On white

6.90
#7F37AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7F37AC
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F37AC#FFFFFF#000000##FFFFFF
##7F37AC1.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AF
Deuteranopia (green-blind)
#235BA9
Tritanopia (blue-blind)
#79506D
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7f37ac;
/* rgb */ color: rgb(127, 55, 172);
/* oklch */ color: oklch(49.0% 0.182 309.5);
Tailwind
colors: {
  custom: {
    50: '#a873c5',
    500: '#7f37ac',
    950: '#000000',
  },
}
SCSS
$custom: #7f37ac;
$custom-light: #a873c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f37ac",
  "rgb": {
    "r": 127,
    "g": 55,
    "b": 172
  },
  "hsl": {
    "h": 276.923,
    "s": 51.542,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48995,
    "c": 0.18247,
    "h": 309.5
  },
  "luminance": 0.10223
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7F37AC

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

Preview Lab → · Contrast checker → · Palette generator →

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