#7843CB#7843CB

#7843CB is a mid, vivid violet. Relative luminance 0.123; OKLCH L 52.0% C 0.199 H 296.7°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#7843CB
RGBrgb(120, 67, 203)
HSLhsl(263, 57%, 53%)
HSVhsv(263, 67%, 80%)
CMYKcmyk(40.9%, 67%, 0%, 20.4%)
CIE-LABlab(41.72, 51.21, -62.41)
CIE-LCHlch(41.72, 80.73, 309.37°)
OKLaboklab(52% 0.0897 -0.1782)
OKLCHoklch(52% 0.199 296.7)
XYZxyz(20.5296, 12.3188, 57.7845)
Luminance0.1232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7843CB #96CB43
analogous
#4352CB #7843CB #BC43CB
triadic
#7843CB #CB7843 #43CB78
tetradic
#7843CB #CB4352 #96CB43 #43CBBC
square
#7843CB #CB4352 #96CB43 #43CBBC
split-complementary
#7843CB #CBBC43 #52CB43
monochromatic
#412074 #5B2DA4 #7843CB #9A73D8 #BDA3E6

Accessibility & contrast

On white

6.06
#7843CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#7843CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7843CB
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7843CB#FFFFFF#000000##FFFFFF
##7843CB1.006.063.466.06
#FFFFFF6.061.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CF
Deuteranopia (green-blind)
#0061C8
Tritanopia (blue-blind)
#636381
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7843cb;
/* rgb */ color: rgb(120, 67, 203);
/* oklch */ color: oklch(52.0% 0.199 296.7);
Tailwind
colors: {
  custom: {
    50: '#a57bdc',
    500: '#7843cb',
    950: '#000000',
  },
}
SCSS
$custom: #7843cb;
$custom-light: #a57bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#7843cb",
  "rgb": {
    "r": 120,
    "g": 67,
    "b": 203
  },
  "hsl": {
    "h": 263.382,
    "s": 56.667,
    "l": 52.941
  },
  "oklch": {
    "l": 0.51998,
    "c": 0.19948,
    "h": 296.7
  },
  "luminance": 0.12319
}

Semantic roles & 50–950 ramp

primary
#7843CB
secondary
#BBD298
accent
#E048A5
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7843CB

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

Preview Lab → · Contrast checker → · Palette generator →

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