#7838C3#7838C3

#7838C3 is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 50.0% C 0.204 H 300.0°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#7838C3
RGBrgb(120, 56, 195)
HSLhsl(268, 55%, 49%)
HSVhsv(268, 71%, 76%)
CMYKcmyk(38.5%, 71.3%, 0%, 23.5%)
CIE-LABlab(39.18, 54.57, -61.89)
CIE-LCHlch(39.18, 82.51, 311.40°)
OKLaboklab(49.99% 0.1021 -0.1766)
OKLCHoklch(49.99% 0.204 300)
XYZxyz(19.0078, 10.7614, 52.6949)
Luminance0.1076 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7838C3 #83C338
analogous
#383EC3 #7838C3 #BE38C3
triadic
#7838C3 #C37838 #38C378
tetradic
#7838C3 #C3383E #83C338 #38C3BE
square
#7838C3 #C3383E #83C338 #38C3BE
split-complementary
#7838C3 #C3BE38 #3EC338
monochromatic
#3D1D64 #5B2A93 #7838C3 #9865D3 #B895E1

Accessibility & contrast

On white

6.66
#7838C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#7838C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7838C3
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7838C3#FFFFFF#000000##FFFFFF
##7838C31.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC7
Deuteranopia (green-blind)
#005BC0
Tritanopia (blue-blind)
#675A7A
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7838c3;
/* rgb */ color: rgb(120, 56, 195);
/* oklch */ color: oklch(50.0% 0.204 300.0);
Tailwind
colors: {
  custom: {
    50: '#a574d6',
    500: '#7838c3',
    950: '#000000',
  },
}
SCSS
$custom: #7838c3;
$custom-light: #a574d6;
$custom-dark: #000000;
JSON
{
  "hex": "#7838c3",
  "rgb": {
    "r": 120,
    "g": 56,
    "b": 195
  },
  "hsl": {
    "h": 267.626,
    "s": 55.378,
    "l": 49.216
  },
  "oklch": {
    "l": 0.49993,
    "c": 0.20397,
    "h": 300
  },
  "luminance": 0.10762
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7838C3

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

Preview Lab → · Contrast checker → · Palette generator →

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