#7838C0#7838C0

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

Color values

HEX#7838C0
RGBrgb(120, 56, 192)
HSLhsl(268, 55%, 49%)
HSVhsv(268, 71%, 75%)
CMYKcmyk(37.5%, 70.8%, 0%, 24.7%)
CIE-LABlab(38.95, 53.83, -60.51)
CIE-LCHlch(38.95, 80.99, 311.65°)
OKLaboklab(49.76% 0.1026 -0.1725)
OKLCHoklch(49.76% 0.201 300.7)
XYZxyz(18.6720, 10.6270, 50.9265)
Luminance0.1063 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7838C0 #80C038
analogous
#383CC0 #7838C0 #BC38C0
triadic
#7838C0 #C07838 #38C078
tetradic
#7838C0 #C0383C #80C038 #38C0BC
square
#7838C0 #C0383C #80C038 #38C0BC
split-complementary
#7838C0 #C0BC38 #3CC038
monochromatic
#3D1C61 #5A2A91 #7838C0 #9764D2 #B793DF

Accessibility & contrast

On white

6.72
#7838C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#7838C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7838C0
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7838C0#FFFFFF#000000##FFFFFF
##7838C01.006.723.136.72
#FFFFFF6.721.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC4
Deuteranopia (green-blind)
#005BBD
Tritanopia (blue-blind)
#685978
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7838c0;
/* rgb */ color: rgb(120, 56, 192);
/* oklch */ color: oklch(49.8% 0.201 300.7);
Tailwind
colors: {
  custom: {
    50: '#a574d4',
    500: '#7838c0',
    950: '#000000',
  },
}
SCSS
$custom: #7838c0;
$custom-light: #a574d4;
$custom-dark: #000000;
JSON
{
  "hex": "#7838c0",
  "rgb": {
    "r": 120,
    "g": 56,
    "b": 192
  },
  "hsl": {
    "h": 268.235,
    "s": 54.839,
    "l": 48.627
  },
  "oklch": {
    "l": 0.49757,
    "c": 0.20075,
    "h": 300.7
  },
  "luminance": 0.10627
}

Semantic roles & 50–950 ramp

primary
#7838C0
secondary
#ACCB89
accent
#DE4A98
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7838C0

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

Preview Lab → · Contrast checker → · Palette generator →

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