#7841CB#7841CB

#7841CB is a mid, highly saturated violet. Relative luminance 0.121; OKLCH L 51.7% C 0.202 H 297.0°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#7841CB
RGBrgb(120, 65, 203)
HSLhsl(264, 57%, 53%)
HSVhsv(264, 68%, 80%)
CMYKcmyk(40.9%, 68%, 0%, 20.4%)
CIE-LABlab(41.35, 52.22, -63.01)
CIE-LCHlch(41.35, 81.84, 309.65°)
OKLaboklab(51.74% 0.0918 -0.1799)
OKLCHoklch(51.74% 0.202 297)
XYZxyz(20.4127, 12.0851, 57.7455)
Luminance0.1208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7841CB #94CB41
analogous
#414FCB #7841CB #BD41CB
triadic
#7841CB #CB7841 #41CB78
tetradic
#7841CB #CB414F #94CB41 #41CBBD
square
#7841CB #CB414F #94CB41 #41CBBD
split-complementary
#7841CB #CBBD41 #4FCB41
monochromatic
#401F72 #5B2CA2 #7841CB #9A71D8 #BCA1E5

Accessibility & contrast

On white

6.15
#7841CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#7841CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7841CB
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7841CB#FFFFFF#000000##FFFFFF
##7841CB1.006.153.426.15
#FFFFFF6.151.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CF
Deuteranopia (green-blind)
#0060C8
Tritanopia (blue-blind)
#636281
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7841cb;
/* rgb */ color: rgb(120, 65, 203);
/* oklch */ color: oklch(51.7% 0.202 297.0);
Tailwind
colors: {
  custom: {
    50: '#a579dc',
    500: '#7841cb',
    950: '#000000',
  },
}
SCSS
$custom: #7841cb;
$custom-light: #a579dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7841cb",
  "rgb": {
    "r": 120,
    "g": 65,
    "b": 203
  },
  "hsl": {
    "h": 263.913,
    "s": 57.025,
    "l": 52.549
  },
  "oklch": {
    "l": 0.51735,
    "c": 0.20196,
    "h": 297
  },
  "luminance": 0.12085
}

Semantic roles & 50–950 ramp

primary
#7841CB
secondary
#BAD296
accent
#E048A3
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7841CB

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

Preview Lab → · Contrast checker → · Palette generator →

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