#7846CB#7846CB

#7846CB is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.4% C 0.196 H 296.3°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#7846CB
RGBrgb(120, 70, 203)
HSLhsl(263, 56%, 54%)
HSVhsv(263, 66%, 80%)
CMYKcmyk(40.9%, 65.5%, 0%, 20.4%)
CIE-LABlab(42.28, 49.66, -61.49)
CIE-LCHlch(42.28, 79.04, 308.92°)
OKLaboklab(52.41% 0.0865 -0.1755)
OKLCHoklch(52.41% 0.196 296.3)
XYZxyz(20.7126, 12.6848, 57.8455)
Luminance0.1268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7846CB #99CB46
analogous
#4656CB #7846CB #BA46CB
triadic
#7846CB #CB7846 #46CB78
tetradic
#7846CB #CB4656 #99CB46 #46CBBA
square
#7846CB #CB4656 #99CB46 #46CBBA
split-complementary
#7846CB #CBBA46 #56CB46
monochromatic
#412176 #5B2EA5 #7846CB #9B76D8 #BEA6E6

Accessibility & contrast

On white

5.94
#7846CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#7846CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7846CB
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7846CB#FFFFFF#000000##FFFFFF
##7846CB1.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CF
Deuteranopia (green-blind)
#0062C8
Tritanopia (blue-blind)
#636582
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7846cb;
/* rgb */ color: rgb(120, 70, 203);
/* oklch */ color: oklch(52.4% 0.196 296.3);
Tailwind
colors: {
  custom: {
    50: '#a57cdc',
    500: '#7846cb',
    950: '#000000',
  },
}
SCSS
$custom: #7846cb;
$custom-light: #a57cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#7846cb",
  "rgb": {
    "r": 120,
    "g": 70,
    "b": 203
  },
  "hsl": {
    "h": 262.556,
    "s": 56.118,
    "l": 53.529
  },
  "oklch": {
    "l": 0.52405,
    "c": 0.19566,
    "h": 296.3
  },
  "luminance": 0.12685
}

Semantic roles & 50–950 ramp

primary
#7846CB
secondary
#BDD39A
accent
#DF48A7
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7846CB

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

Preview Lab → · Contrast checker → · Palette generator →

#7846CB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva