#7837C6#7837C6

#7837C6 is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 50.1% C 0.208 H 299.5°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#7837C6
RGBrgb(120, 55, 198)
HSLhsl(267, 57%, 50%)
HSVhsv(267, 72%, 78%)
CMYKcmyk(39.4%, 72.2%, 0%, 22.4%)
CIE-LABlab(39.25, 55.77, -63.53)
CIE-LCHlch(39.25, 84.53, 311.28°)
OKLaboklab(50.12% 0.1024 -0.1814)
OKLCHoklch(50.12% 0.208 299.5)
XYZxyz(19.3024, 10.8024, 54.4833)
Luminance0.1080 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7837C6 #85C637
analogous
#373DC6 #7837C6 #C037C6
triadic
#7837C6 #C67837 #37C678
tetradic
#7837C6 #C6373D #85C637 #37C6C0
square
#7837C6 #C6373D #85C637 #37C6C0
split-complementary
#7837C6 #C6C037 #3DC637
monochromatic
#3E1C66 #5B2A96 #7837C6 #9866D4 #B896E2

Accessibility & contrast

On white

6.64
#7837C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#7837C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7837C6
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7837C6#FFFFFF#000000##FFFFFF
##7837C61.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCA
Deuteranopia (green-blind)
#005BC3
Tritanopia (blue-blind)
#665B7B
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7837c6;
/* rgb */ color: rgb(120, 55, 198);
/* oklch */ color: oklch(50.1% 0.208 299.5);
Tailwind
colors: {
  custom: {
    50: '#a574d8',
    500: '#7837c6',
    950: '#000000',
  },
}
SCSS
$custom: #7837c6;
$custom-light: #a574d8;
$custom-dark: #000000;
JSON
{
  "hex": "#7837c6",
  "rgb": {
    "r": 120,
    "g": 55,
    "b": 198
  },
  "hsl": {
    "h": 267.273,
    "s": 56.522,
    "l": 49.608
  },
  "oklch": {
    "l": 0.50116,
    "c": 0.20833,
    "h": 299.5
  },
  "luminance": 0.10803
}

Semantic roles & 50–950 ramp

primary
#7837C6
secondary
#AFCD8C
accent
#E0489B
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100815
muted
#7F7B83

Preview Lab

Preview with #7837C6

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

Preview Lab → · Contrast checker → · Palette generator →

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