#7847CB#7847CB

#7847CB is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.5% C 0.194 H 296.1°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#7847CB
RGBrgb(120, 71, 203)
HSLhsl(262, 56%, 54%)
HSVhsv(262, 65%, 80%)
CMYKcmyk(40.9%, 65%, 0%, 20.4%)
CIE-LABlab(42.48, 49.14, -61.18)
CIE-LCHlch(42.48, 78.47, 308.77°)
OKLaboklab(52.54% 0.0855 -0.1746)
OKLCHoklch(52.54% 0.194 296.1)
XYZxyz(20.7756, 12.8109, 57.8665)
Luminance0.1281 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7847CB #9ACB47
analogous
#4758CB #7847CB #BA47CB
triadic
#7847CB #CB7847 #47CB78
tetradic
#7847CB #CB4758 #9ACB47 #47CBBA
square
#7847CB #CB4758 #9ACB47 #47CBBA
split-complementary
#7847CB #CBBA47 #58CB47
monochromatic
#412176 #5B2FA6 #7847CB #9B77D8 #BEA6E6

Accessibility & contrast

On white

5.90
#7847CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#7847CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7847CB
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7847CB#FFFFFF#000000##FFFFFF
##7847CB1.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7847cb;
/* rgb */ color: rgb(120, 71, 203);
/* oklch */ color: oklch(52.5% 0.194 296.1);
Tailwind
colors: {
  custom: {
    50: '#a57ddc',
    500: '#7847cb',
    950: '#000000',
  },
}
SCSS
$custom: #7847cb;
$custom-light: #a57ddc;
$custom-dark: #000000;
JSON
{
  "hex": "#7847cb",
  "rgb": {
    "r": 120,
    "g": 71,
    "b": 203
  },
  "hsl": {
    "h": 262.273,
    "s": 55.932,
    "l": 53.725
  },
  "oklch": {
    "l": 0.52543,
    "c": 0.19437,
    "h": 296.1
  },
  "luminance": 0.12811
}

Semantic roles & 50–950 ramp

primary
#7847CB
secondary
#BED39B
accent
#DF49A7
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7847CB

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

Preview Lab → · Contrast checker → · Palette generator →

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