#7838C6#7838C6

#7838C6 is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 50.2% C 0.207 H 299.3°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#7838C6
RGBrgb(120, 56, 198)
HSLhsl(267, 56%, 50%)
HSVhsv(267, 72%, 78%)
CMYKcmyk(39.4%, 71.7%, 0%, 22.4%)
CIE-LABlab(39.41, 55.31, -63.26)
CIE-LCHlch(39.41, 84.03, 311.16°)
OKLaboklab(50.23% 0.1015 -0.1806)
OKLCHoklch(50.23% 0.207 299.3)
XYZxyz(19.3504, 10.8984, 54.4993)
Luminance0.1090 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7838C6 #86C638
analogous
#383FC6 #7838C6 #BF38C6
triadic
#7838C6 #C67838 #38C678
tetradic
#7838C6 #C6383F #86C638 #38C6BF
square
#7838C6 #C6383F #86C638 #38C6BF
split-complementary
#7838C6 #C6BF38 #3FC638
monochromatic
#3E1D67 #5B2B96 #7838C6 #9867D4 #B997E2

Accessibility & contrast

On white

6.60
#7838C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#7838C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7838C6
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7838C6#FFFFFF#000000##FFFFFF
##7838C61.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCA
Deuteranopia (green-blind)
#005CC3
Tritanopia (blue-blind)
#665B7C
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7838c6;
/* rgb */ color: rgb(120, 56, 198);
/* oklch */ color: oklch(50.2% 0.207 299.3);
Tailwind
colors: {
  custom: {
    50: '#a574d8',
    500: '#7838c6',
    950: '#000000',
  },
}
SCSS
$custom: #7838c6;
$custom-light: #a574d8;
$custom-dark: #000000;
JSON
{
  "hex": "#7838c6",
  "rgb": {
    "r": 120,
    "g": 56,
    "b": 198
  },
  "hsl": {
    "h": 267.042,
    "s": 55.906,
    "l": 49.804
  },
  "oklch": {
    "l": 0.50232,
    "c": 0.20718,
    "h": 299.3
  },
  "luminance": 0.10899
}

Semantic roles & 50–950 ramp

primary
#7838C6
secondary
#B0CD8D
accent
#DF499B
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7838C6

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

Preview Lab → · Contrast checker → · Palette generator →

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