#7846CD#7846CD

#7846CD is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.6% C 0.198 H 295.8°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#7846CD
RGBrgb(120, 70, 205)
HSLhsl(262, 57%, 54%)
HSVhsv(262, 66%, 80%)
CMYKcmyk(41.5%, 65.9%, 0%, 19.6%)
CIE-LABlab(42.43, 50.19, -62.41)
CIE-LCHlch(42.43, 80.08, 308.80°)
OKLaboklab(52.56% 0.0863 -0.1782)
OKLCHoklch(52.56% 0.198 295.8)
XYZxyz(20.9524, 12.7807, 59.1088)
Luminance0.1278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7846CD #9BCD46
analogous
#4658CD #7846CD #BC46CD
triadic
#7846CD #CD7846 #46CD78
tetradic
#7846CD #CD4658 #9BCD46 #46CDBC
square
#7846CD #CD4658 #9BCD46 #46CDBC
split-complementary
#7846CD #CDBC46 #58CD46
monochromatic
#412078 #5B2DA8 #7846CD #9B76DA #BEA6E7

Accessibility & contrast

On white

5.91
#7846CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#7846CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7846CD
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7846CD#FFFFFF#000000##FFFFFF
##7846CD1.005.913.565.91
#FFFFFF5.911.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D1
Deuteranopia (green-blind)
#0062CA
Tritanopia (blue-blind)
#626683
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7846cd;
/* rgb */ color: rgb(120, 70, 205);
/* oklch */ color: oklch(52.6% 0.198 295.8);
Tailwind
colors: {
  custom: {
    50: '#a57ddd',
    500: '#7846cd',
    950: '#000000',
  },
}
SCSS
$custom: #7846cd;
$custom-light: #a57ddd;
$custom-dark: #000000;
JSON
{
  "hex": "#7846cd",
  "rgb": {
    "r": 120,
    "g": 70,
    "b": 205
  },
  "hsl": {
    "h": 262.222,
    "s": 57.447,
    "l": 53.922
  },
  "oklch": {
    "l": 0.52556,
    "c": 0.19798,
    "h": 295.8
  },
  "luminance": 0.12781
}

Semantic roles & 50–950 ramp

primary
#7846CD
secondary
#BFD49B
accent
#E147A8
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7846CD

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

Preview Lab → · Contrast checker → · Palette generator →

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