#7A37B2#7A37B2

#7A37B2 is a mid, vivid violet. Relative luminance 0.101; OKLCH L 48.8% C 0.187 H 305.4°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#7A37B2
RGBrgb(122, 55, 178)
HSLhsl(273, 53%, 46%)
HSVhsv(273, 69%, 70%)
CMYKcmyk(31.5%, 69.1%, 0%, 30.2%)
CIE-LABlab(37.99, 51.32, -53.80)
CIE-LCHlch(37.99, 74.35, 313.65°)
OKLaboklab(48.81% 0.1086 -0.1527)
OKLCHoklch(48.81% 0.187 305.4)
XYZxyz(17.4263, 10.0844, 43.1393)
Luminance0.1008 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A37B2 #6FB237
analogous
#3C37B2 #7A37B2 #B237AC
triadic
#7A37B2 #B27A37 #37B27A
tetradic
#7A37B2 #B23C37 #6FB237 #37ACB2
square
#7A37B2 #B23C37 #6FB237 #37ACB2
split-complementary
#7A37B2 #ACB237 #37B23C
monochromatic
#3A1A54 #5A2983 #7A37B2 #985ACC #B589DB

Accessibility & contrast

On white

6.96
#7A37B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#7A37B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A37B2
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A37B2#FFFFFF#000000##FFFFFF
##7A37B21.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B6
Deuteranopia (green-blind)
#095AAF
Tritanopia (blue-blind)
#705370
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7a37b2;
/* rgb */ color: rgb(122, 55, 178);
/* oklch */ color: oklch(48.8% 0.187 305.4);
Tailwind
colors: {
  custom: {
    50: '#a573ca',
    500: '#7a37b2',
    950: '#000000',
  },
}
SCSS
$custom: #7a37b2;
$custom-light: #a573ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7a37b2",
  "rgb": {
    "r": 122,
    "g": 55,
    "b": 178
  },
  "hsl": {
    "h": 272.683,
    "s": 52.79,
    "l": 45.686
  },
  "oklch": {
    "l": 0.48809,
    "c": 0.1874,
    "h": 305.4
  },
  "luminance": 0.10084
}

Semantic roles & 50–950 ramp

primary
#7A37B2
secondary
#9FC580
accent
#DC4C8D
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7A37B2

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

Preview Lab → · Contrast checker → · Palette generator →

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