#7D37B2#7D37B2

#7D37B2 is a mid, vivid violet. Relative luminance 0.103; OKLCH L 49.2% C 0.188 H 306.8°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#7D37B2
RGBrgb(125, 55, 178)
HSLhsl(274, 53%, 46%)
HSVhsv(274, 69%, 70%)
CMYKcmyk(29.8%, 69.1%, 0%, 30.2%)
CIE-LABlab(38.39, 51.94, -53.14)
CIE-LCHlch(38.39, 74.31, 314.35°)
OKLaboklab(49.18% 0.1127 -0.1507)
OKLCHoklch(49.18% 0.188 306.8)
XYZxyz(17.8578, 10.3069, 43.1595)
Luminance0.1031 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D37B2 #6CB237
analogous
#3F37B2 #7D37B2 #B237A9
triadic
#7D37B2 #B27D37 #37B27D
tetradic
#7D37B2 #B23F37 #6CB237 #37A9B2
square
#7D37B2 #B23F37 #6CB237 #37A9B2
split-complementary
#7D37B2 #A9B237 #37B23F
monochromatic
#3B1A54 #5C2983 #7D37B2 #9B5ACC #B789DB

Accessibility & contrast

On white

6.86
#7D37B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#7D37B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D37B2
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D37B2#FFFFFF#000000##FFFFFF
##7D37B21.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B6
Deuteranopia (green-blind)
#135BAF
Tritanopia (blue-blind)
#745270
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7d37b2;
/* rgb */ color: rgb(125, 55, 178);
/* oklch */ color: oklch(49.2% 0.188 306.8);
Tailwind
colors: {
  custom: {
    50: '#a773ca',
    500: '#7d37b2',
    950: '#000000',
  },
}
SCSS
$custom: #7d37b2;
$custom-light: #a773ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7d37b2",
  "rgb": {
    "r": 125,
    "g": 55,
    "b": 178
  },
  "hsl": {
    "h": 274.146,
    "s": 52.79,
    "l": 45.686
  },
  "oklch": {
    "l": 0.49175,
    "c": 0.18816,
    "h": 306.8
  },
  "luminance": 0.10307
}

Semantic roles & 50–950 ramp

primary
#7D37B2
secondary
#9EC580
accent
#DC4C8A
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7D37B2

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

Preview Lab → · Contrast checker → · Palette generator →

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