#7838BE#7838BE

#7838BE is a mid, vivid violet. Relative luminance 0.105; OKLCH L 49.6% C 0.199 H 301.2°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#7838BE
RGBrgb(120, 56, 190)
HSLhsl(269, 54%, 48%)
HSVhsv(269, 71%, 75%)
CMYKcmyk(36.8%, 70.5%, 0%, 25.5%)
CIE-LABlab(38.79, 53.34, -59.59)
CIE-LCHlch(38.79, 79.97, 311.83°)
OKLaboklab(49.6% 0.1029 -0.1698)
OKLCHoklch(49.6% 0.199 301.2)
XYZxyz(18.4519, 10.5390, 49.7673)
Luminance0.1054 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7838BE #7EBE38
analogous
#383BBE #7838BE #BB38BE
triadic
#7838BE #BE7838 #38BE78
tetradic
#7838BE #BE383B #7EBE38 #38BEBB
square
#7838BE #BE383B #7EBE38 #38BEBB
split-complementary
#7838BE #BEBB38 #3BBE38
monochromatic
#3C1C5F #5A2A8F #7838BE #9762D1 #B692DF

Accessibility & contrast

On white

6.76
#7838BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#7838BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7838BE
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7838BE#FFFFFF#000000##FFFFFF
##7838BE1.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC2
Deuteranopia (green-blind)
#005BBB
Tritanopia (blue-blind)
#695877
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7838be;
/* rgb */ color: rgb(120, 56, 190);
/* oklch */ color: oklch(49.6% 0.199 301.2);
Tailwind
colors: {
  custom: {
    50: '#a574d2',
    500: '#7838be',
    950: '#000000',
  },
}
SCSS
$custom: #7838be;
$custom-light: #a574d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7838be",
  "rgb": {
    "r": 120,
    "g": 56,
    "b": 190
  },
  "hsl": {
    "h": 268.657,
    "s": 54.472,
    "l": 48.235
  },
  "oklch": {
    "l": 0.49602,
    "c": 0.1986,
    "h": 301.2
  },
  "luminance": 0.10539
}

Semantic roles & 50–950 ramp

primary
#7838BE
secondary
#AACA88
accent
#DE4A97
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7838BE

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

Preview Lab → · Contrast checker → · Palette generator →

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