#7838C5#7838C5

#7838C5 is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 50.2% C 0.206 H 299.6°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#7838C5
RGBrgb(120, 56, 197)
HSLhsl(267, 56%, 50%)
HSVhsv(267, 72%, 77%)
CMYKcmyk(39.1%, 71.6%, 0%, 22.7%)
CIE-LABlab(39.33, 55.06, -62.81)
CIE-LCHlch(39.33, 83.53, 311.24°)
OKLaboklab(50.15% 0.1017 -0.1793)
OKLCHoklch(50.15% 0.206 299.6)
XYZxyz(19.2354, 10.8524, 53.8938)
Luminance0.1085 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7838C5 #85C538
analogous
#383FC5 #7838C5 #BF38C5
triadic
#7838C5 #C57838 #38C578
tetradic
#7838C5 #C5383F #85C538 #38C5BF
square
#7838C5 #C5383F #85C538 #38C5BF
split-complementary
#7838C5 #C5BF38 #3FC538
monochromatic
#3E1D66 #5B2A95 #7838C5 #9867D4 #B896E1

Accessibility & contrast

On white

6.62
#7838C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#7838C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7838C5
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7838C5#FFFFFF#000000##FFFFFF
##7838C51.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC9
Deuteranopia (green-blind)
#005BC2
Tritanopia (blue-blind)
#665B7B
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7838c5;
/* rgb */ color: rgb(120, 56, 197);
/* oklch */ color: oklch(50.2% 0.206 299.6);
Tailwind
colors: {
  custom: {
    50: '#a574d8',
    500: '#7838c5',
    950: '#000000',
  },
}
SCSS
$custom: #7838c5;
$custom-light: #a574d8;
$custom-dark: #000000;
JSON
{
  "hex": "#7838c5",
  "rgb": {
    "r": 120,
    "g": 56,
    "b": 197
  },
  "hsl": {
    "h": 267.234,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.50152,
    "c": 0.20612,
    "h": 299.6
  },
  "luminance": 0.10853
}

Semantic roles & 50–950 ramp

primary
#7838C5
secondary
#AFCD8C
accent
#DF499B
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7838C5

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

Preview Lab → · Contrast checker → · Palette generator →

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