#7837B8#7837B8

#7837B8 is a mid, vivid violet. Relative luminance 0.102; OKLCH L 49.0% C 0.193 H 302.9°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#7837B8
RGBrgb(120, 55, 184)
HSLhsl(270, 54%, 47%)
HSVhsv(270, 70%, 72%)
CMYKcmyk(34.8%, 70.1%, 0%, 27.8%)
CIE-LABlab(38.17, 52.35, -57.07)
CIE-LCHlch(38.17, 77.44, 312.53°)
OKLaboklab(49.02% 0.1049 -0.1624)
OKLCHoklch(49.02% 0.193 302.9)
XYZxyz(17.7616, 10.1861, 46.3685)
Luminance0.1019 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7837B8 #77B837
analogous
#3837B8 #7837B8 #B837B8
triadic
#7837B8 #B87837 #37B878
tetradic
#7837B8 #B83837 #77B837 #37B8B8
square
#7837B8 #B83837 #77B837 #37B8B8
split-complementary
#7837B8 #B8B837 #37B838
monochromatic
#3B1B5A #592989 #7837B8 #975DCF #B58DDD

Accessibility & contrast

On white

6.91
#7837B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#7837B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7837B8
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7837B8#FFFFFF#000000##FFFFFF
##7837B81.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BC
Deuteranopia (green-blind)
#0059B5
Tritanopia (blue-blind)
#6B5573
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7837b8;
/* rgb */ color: rgb(120, 55, 184);
/* oklch */ color: oklch(49.0% 0.193 302.9);
Tailwind
colors: {
  custom: {
    50: '#a473ce',
    500: '#7837b8',
    950: '#000000',
  },
}
SCSS
$custom: #7837b8;
$custom-light: #a473ce;
$custom-dark: #000000;
JSON
{
  "hex": "#7837b8",
  "rgb": {
    "r": 120,
    "g": 55,
    "b": 184
  },
  "hsl": {
    "h": 270.233,
    "s": 53.975,
    "l": 46.863
  },
  "oklch": {
    "l": 0.4902,
    "c": 0.19336,
    "h": 302.9
  },
  "luminance": 0.10186
}

Semantic roles & 50–950 ramp

primary
#7837B8
secondary
#A5C784
accent
#DD4A93
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7837B8

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

Preview Lab → · Contrast checker → · Palette generator →

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