#7838BC#7838BC

#7838BC is a mid, vivid violet. Relative luminance 0.105; OKLCH L 49.4% C 0.196 H 301.7°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#7838BC
RGBrgb(120, 56, 188)
HSLhsl(269, 54%, 48%)
HSVhsv(269, 70%, 74%)
CMYKcmyk(36.2%, 70.2%, 0%, 26.3%)
CIE-LABlab(38.64, 52.85, -58.66)
CIE-LCHlch(38.64, 78.96, 312.02°)
OKLaboklab(49.45% 0.1033 -0.1671)
OKLCHoklch(49.45% 0.196 301.7)
XYZxyz(18.2348, 10.4522, 48.6240)
Luminance0.1045 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7838BC #7CBC38
analogous
#383ABC #7838BC #BA38BC
triadic
#7838BC #BC7838 #38BC78
tetradic
#7838BC #BC383A #7CBC38 #38BCBA
square
#7838BC #BC383A #7CBC38 #38BCBA
split-complementary
#7838BC #BCBA38 #3ABC38
monochromatic
#3C1C5E #5A2A8D #7838BC #9761D0 #B690DE

Accessibility & contrast

On white

6.80
#7838BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#7838BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7838BC
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7838BC#FFFFFF#000000##FFFFFF
##7838BC1.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC0
Deuteranopia (green-blind)
#005AB9
Tritanopia (blue-blind)
#6A5776
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7838bc;
/* rgb */ color: rgb(120, 56, 188);
/* oklch */ color: oklch(49.4% 0.196 301.7);
Tailwind
colors: {
  custom: {
    50: '#a474d1',
    500: '#7838bc',
    950: '#000000',
  },
}
SCSS
$custom: #7838bc;
$custom-light: #a474d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7838bc",
  "rgb": {
    "r": 120,
    "g": 56,
    "b": 188
  },
  "hsl": {
    "h": 269.091,
    "s": 54.098,
    "l": 47.843
  },
  "oklch": {
    "l": 0.49447,
    "c": 0.19645,
    "h": 301.7
  },
  "luminance": 0.10452
}

Semantic roles & 50–950 ramp

primary
#7838BC
secondary
#A9C987
accent
#DD4A96
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7838BC

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

Preview Lab → · Contrast checker → · Palette generator →

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