#7838C4#7838C4

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

Color values

HEX#7838C4
RGBrgb(120, 56, 196)
HSLhsl(267, 56%, 49%)
HSVhsv(267, 71%, 77%)
CMYKcmyk(38.8%, 71.4%, 0%, 23.1%)
CIE-LABlab(39.25, 54.81, -62.35)
CIE-LCHlch(39.25, 83.02, 311.32°)
OKLaboklab(50.07% 0.1019 -0.1779)
OKLCHoklch(50.07% 0.205 299.8)
XYZxyz(19.1212, 10.8067, 53.2924)
Luminance0.1081 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7838C4 #84C438
analogous
#383EC4 #7838C4 #BE38C4
triadic
#7838C4 #C47838 #38C478
tetradic
#7838C4 #C4383E #84C438 #38C4BE
square
#7838C4 #C4383E #84C438 #38C4BE
split-complementary
#7838C4 #C4BE38 #3EC438
monochromatic
#3E1D65 #5B2A94 #7838C4 #9866D3 #B896E1

Accessibility & contrast

On white

6.64
#7838C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#7838C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7838C4
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7838C4#FFFFFF#000000##FFFFFF
##7838C41.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)
#005CC8
Deuteranopia (green-blind)
#005BC1
Tritanopia (blue-blind)
#665B7A
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7838c4;
/* rgb */ color: rgb(120, 56, 196);
/* oklch */ color: oklch(50.1% 0.205 299.8);
Tailwind
colors: {
  custom: {
    50: '#a574d7',
    500: '#7838c4',
    950: '#000000',
  },
}
SCSS
$custom: #7838c4;
$custom-light: #a574d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7838c4",
  "rgb": {
    "r": 120,
    "g": 56,
    "b": 196
  },
  "hsl": {
    "h": 267.429,
    "s": 55.556,
    "l": 49.412
  },
  "oklch": {
    "l": 0.50072,
    "c": 0.20505,
    "h": 299.8
  },
  "luminance": 0.10807
}

Semantic roles & 50–950 ramp

primary
#7838C4
secondary
#AFCC8C
accent
#DF499A
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7838C4

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

Preview Lab → · Contrast checker → · Palette generator →

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