#7838BF#7838BF

#7838BF is a mid, vivid violet. Relative luminance 0.106; OKLCH L 49.7% C 0.200 H 301.0°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#7838BF
RGBrgb(120, 56, 191)
HSLhsl(268, 55%, 48%)
HSVhsv(268, 71%, 75%)
CMYKcmyk(37.2%, 70.7%, 0%, 25.1%)
CIE-LABlab(38.87, 53.58, -60.05)
CIE-LCHlch(38.87, 80.48, 311.74°)
OKLaboklab(49.68% 0.1028 -0.1712)
OKLCHoklch(49.68% 0.2 301)
XYZxyz(18.5616, 10.5829, 50.3449)
Luminance0.1058 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7838BF #7FBF38
analogous
#383CBF #7838BF #BB38BF
triadic
#7838BF #BF7838 #38BF78
tetradic
#7838BF #BF383C #7FBF38 #38BFBB
square
#7838BF #BF383C #7FBF38 #38BFBB
split-complementary
#7838BF #BFBB38 #3CBF38
monochromatic
#3D1C60 #5A2A90 #7838BF #9763D1 #B792DF

Accessibility & contrast

On white

6.74
#7838BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#7838BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7838BF
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7838BF#FFFFFF#000000##FFFFFF
##7838BF1.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7838bf;
/* rgb */ color: rgb(120, 56, 191);
/* oklch */ color: oklch(49.7% 0.200 301.0);
Tailwind
colors: {
  custom: {
    50: '#a574d3',
    500: '#7838bf',
    950: '#000000',
  },
}
SCSS
$custom: #7838bf;
$custom-light: #a574d3;
$custom-dark: #000000;
JSON
{
  "hex": "#7838bf",
  "rgb": {
    "r": 120,
    "g": 56,
    "b": 191
  },
  "hsl": {
    "h": 268.444,
    "s": 54.656,
    "l": 48.431
  },
  "oklch": {
    "l": 0.49679,
    "c": 0.19968,
    "h": 301
  },
  "luminance": 0.10583
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7838BF

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

Preview Lab → · Contrast checker → · Palette generator →

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