#7838BB#7838BB

#7838BB is a mid, vivid violet. Relative luminance 0.104; OKLCH L 49.4% C 0.195 H 302.0°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#7838BB
RGBrgb(120, 56, 187)
HSLhsl(269, 54%, 48%)
HSVhsv(269, 70%, 73%)
CMYKcmyk(35.8%, 70.1%, 0%, 26.7%)
CIE-LABlab(38.57, 52.60, -58.20)
CIE-LCHlch(38.57, 78.45, 312.11°)
OKLaboklab(49.37% 0.1034 -0.1657)
OKLCHoklch(49.37% 0.195 302)
XYZxyz(18.1274, 10.4092, 48.0582)
Luminance0.1041 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7838BB #7BBB38
analogous
#383ABB #7838BB #B938BB
triadic
#7838BB #BB7838 #38BB78
tetradic
#7838BB #BB383A #7BBB38 #38BBB9
square
#7838BB #BB383A #7BBB38 #38BBB9
split-complementary
#7838BB #BBB938 #3ABB38
monochromatic
#3C1C5D #5A2A8C #7838BB #9761D0 #B690DE

Accessibility & contrast

On white

6.81
#7838BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#7838BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7838BB
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7838BB#FFFFFF#000000##FFFFFF
##7838BB1.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7838bb;
/* rgb */ color: rgb(120, 56, 187);
/* oklch */ color: oklch(49.4% 0.195 302.0);
Tailwind
colors: {
  custom: {
    50: '#a474d0',
    500: '#7838bb',
    950: '#000000',
  },
}
SCSS
$custom: #7838bb;
$custom-light: #a474d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7838bb",
  "rgb": {
    "r": 120,
    "g": 56,
    "b": 187
  },
  "hsl": {
    "h": 269.313,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.4937,
    "c": 0.19537,
    "h": 302
  },
  "luminance": 0.10409
}

Semantic roles & 50–950 ramp

primary
#7838BB
secondary
#A8C886
accent
#DD4B96
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7838BB

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

Preview Lab → · Contrast checker → · Palette generator →

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