#7838BA#7838BA

#7838BA is a mid, vivid violet. Relative luminance 0.104; OKLCH L 49.3% C 0.194 H 302.2°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#7838BA
RGBrgb(120, 56, 186)
HSLhsl(270, 54%, 47%)
HSVhsv(270, 70%, 73%)
CMYKcmyk(35.5%, 69.9%, 0%, 27.1%)
CIE-LABlab(38.49, 52.36, -57.73)
CIE-LCHlch(38.49, 77.94, 312.21°)
OKLaboklab(49.29% 0.1036 -0.1644)
OKLCHoklch(49.29% 0.194 302.2)
XYZxyz(18.0207, 10.3665, 47.4964)
Luminance0.1037 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7838BA #7ABA38
analogous
#3839BA #7838BA #B938BA
triadic
#7838BA #BA7838 #38BA78
tetradic
#7838BA #BA3839 #7ABA38 #38BAB9
square
#7838BA #BA3839 #7ABA38 #38BAB9
split-complementary
#7838BA #BAB938 #39BA38
monochromatic
#3B1C5C #5A2A8B #7838BA #9760CF #B68FDD

Accessibility & contrast

On white

6.83
#7838BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#7838BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7838BA
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7838BA#FFFFFF#000000##FFFFFF
##7838BA1.006.833.076.83
#FFFFFF6.831.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABE
Deuteranopia (green-blind)
#005AB7
Tritanopia (blue-blind)
#6A5775
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7838ba;
/* rgb */ color: rgb(120, 56, 186);
/* oklch */ color: oklch(49.3% 0.194 302.2);
Tailwind
colors: {
  custom: {
    50: '#a474d0',
    500: '#7838ba',
    950: '#000000',
  },
}
SCSS
$custom: #7838ba;
$custom-light: #a474d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7838ba",
  "rgb": {
    "r": 120,
    "g": 56,
    "b": 186
  },
  "hsl": {
    "h": 269.538,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.49293,
    "c": 0.19429,
    "h": 302.2
  },
  "luminance": 0.10367
}

Semantic roles & 50–950 ramp

primary
#7838BA
secondary
#A7C886
accent
#DD4B95
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7838BA

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

Preview Lab → · Contrast checker → · Palette generator →

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