#7837C2#7837C2

#7837C2 is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 49.8% C 0.204 H 300.4°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#7837C2
RGBrgb(120, 55, 194)
HSLhsl(268, 56%, 49%)
HSVhsv(268, 72%, 76%)
CMYKcmyk(38.1%, 71.6%, 0%, 23.9%)
CIE-LABlab(38.93, 54.79, -61.70)
CIE-LCHlch(38.93, 82.52, 311.60°)
OKLaboklab(49.8% 0.1032 -0.176)
OKLCHoklch(49.8% 0.204 300.4)
XYZxyz(18.8471, 10.6203, 52.0855)
Luminance0.1062 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7837C2 #81C237
analogous
#373BC2 #7837C2 #BE37C2
triadic
#7837C2 #C27837 #37C278
tetradic
#7837C2 #C2373B #81C237 #37C2BE
square
#7837C2 #C2373B #81C237 #37C2BE
split-complementary
#7837C2 #C2BE37 #3BC237
monochromatic
#3D1C63 #5B2992 #7837C2 #9763D3 #B793E0

Accessibility & contrast

On white

6.72
#7837C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#7837C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7837C2
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7837C2#FFFFFF#000000##FFFFFF
##7837C21.006.723.126.72
#FFFFFF6.721.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC6
Deuteranopia (green-blind)
#005BBF
Tritanopia (blue-blind)
#675979
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7837c2;
/* rgb */ color: rgb(120, 55, 194);
/* oklch */ color: oklch(49.8% 0.204 300.4);
Tailwind
colors: {
  custom: {
    50: '#a573d5',
    500: '#7837c2',
    950: '#000000',
  },
}
SCSS
$custom: #7837c2;
$custom-light: #a573d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7837c2",
  "rgb": {
    "r": 120,
    "g": 55,
    "b": 194
  },
  "hsl": {
    "h": 268.058,
    "s": 55.823,
    "l": 48.824
  },
  "oklch": {
    "l": 0.49797,
    "c": 0.20406,
    "h": 300.4
  },
  "luminance": 0.1062
}

Semantic roles & 50–950 ramp

primary
#7837C2
secondary
#ADCB89
accent
#DF4999
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7837C2

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

Preview Lab → · Contrast checker → · Palette generator →

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