#7838C2#7838C2

#7838C2 is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 49.9% C 0.203 H 300.3°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#7838C2
RGBrgb(120, 56, 194)
HSLhsl(268, 55%, 49%)
HSVhsv(268, 71%, 76%)
CMYKcmyk(38.1%, 71.1%, 0%, 23.9%)
CIE-LABlab(39.10, 54.32, -61.43)
CIE-LCHlch(39.10, 82.01, 311.48°)
OKLaboklab(49.91% 0.1022 -0.1753)
OKLCHoklch(49.91% 0.203 300.3)
XYZxyz(18.8951, 10.7163, 52.1014)
Luminance0.1072 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7838C2 #82C238
analogous
#383DC2 #7838C2 #BD38C2
triadic
#7838C2 #C27838 #38C278
tetradic
#7838C2 #C2383D #82C238 #38C2BD
square
#7838C2 #C2383D #82C238 #38C2BD
split-complementary
#7838C2 #C2BD38 #3DC238
monochromatic
#3D1D63 #5B2A93 #7838C2 #9865D2 #B794E0

Accessibility & contrast

On white

6.68
#7838C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#7838C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7838C2
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7838C2#FFFFFF#000000##FFFFFF
##7838C21.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC6
Deuteranopia (green-blind)
#005BBF
Tritanopia (blue-blind)
#675A79
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7838c2;
/* rgb */ color: rgb(120, 56, 194);
/* oklch */ color: oklch(49.9% 0.203 300.3);
Tailwind
colors: {
  custom: {
    50: '#a574d5',
    500: '#7838c2',
    950: '#000000',
  },
}
SCSS
$custom: #7838c2;
$custom-light: #a574d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7838c2",
  "rgb": {
    "r": 120,
    "g": 56,
    "b": 194
  },
  "hsl": {
    "h": 267.826,
    "s": 55.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.49914,
    "c": 0.2029,
    "h": 300.3
  },
  "luminance": 0.10716
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7838C2

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

Preview Lab → · Contrast checker → · Palette generator →

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