#7837BA#7837BA

#7837BA is a mid, vivid violet. Relative luminance 0.103; OKLCH L 49.2% C 0.196 H 302.4°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#7837BA
RGBrgb(120, 55, 186)
HSLhsl(270, 54%, 47%)
HSVhsv(270, 70%, 73%)
CMYKcmyk(35.5%, 70.4%, 0%, 27.1%)
CIE-LABlab(38.32, 52.83, -58.00)
CIE-LCHlch(38.32, 78.46, 312.33°)
OKLaboklab(49.17% 0.1046 -0.1652)
OKLCHoklch(49.17% 0.196 302.4)
XYZxyz(17.9727, 10.2706, 47.4804)
Luminance0.1027 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7837BA #79BA37
analogous
#3737BA #7837BA #BA37BA
triadic
#7837BA #BA7837 #37BA78
tetradic
#7837BA #BA3737 #79BA37 #37BABA
square
#7837BA #BA3737 #79BA37 #37BABA
split-complementary
#7837BA #BABA37 #37BA37
monochromatic
#3B1B5C #5A298B #7837BA #975FD0 #B58EDE

Accessibility & contrast

On white

6.88
#7837BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#7837BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7837BA
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7837BA#FFFFFF#000000##FFFFFF
##7837BA1.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BE
Deuteranopia (green-blind)
#005AB7
Tritanopia (blue-blind)
#6A5675
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7837ba;
/* rgb */ color: rgb(120, 55, 186);
/* oklch */ color: oklch(49.2% 0.196 302.4);
Tailwind
colors: {
  custom: {
    50: '#a473d0',
    500: '#7837ba',
    950: '#000000',
  },
}
SCSS
$custom: #7837ba;
$custom-light: #a473d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7837ba",
  "rgb": {
    "r": 120,
    "g": 55,
    "b": 186
  },
  "hsl": {
    "h": 269.771,
    "s": 54.357,
    "l": 47.255
  },
  "oklch": {
    "l": 0.49173,
    "c": 0.19551,
    "h": 302.4
  },
  "luminance": 0.10271
}

Semantic roles & 50–950 ramp

primary
#7837BA
secondary
#A7C885
accent
#DE4A94
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7837BA

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

Preview Lab → · Contrast checker → · Palette generator →

#7837BA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva