#7843CA#7843CA

#7843CA is a mid, vivid violet. Relative luminance 0.123; OKLCH L 51.9% C 0.198 H 296.9°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#7843CA
RGBrgb(120, 67, 202)
HSLhsl(264, 56%, 53%)
HSVhsv(264, 67%, 79%)
CMYKcmyk(40.6%, 66.8%, 0%, 20.8%)
CIE-LABlab(41.64, 50.95, -61.95)
CIE-LCHlch(41.64, 80.21, 309.44°)
OKLaboklab(51.92% 0.0898 -0.1768)
OKLCHoklch(51.92% 0.198 296.9)
XYZxyz(20.4108, 12.2713, 57.1589)
Luminance0.1227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7843CA #95CA43
analogous
#4351CA #7843CA #BC43CA
triadic
#7843CA #CA7843 #43CA78
tetradic
#7843CA #CA4351 #95CA43 #43CABC
square
#7843CA #CA4351 #95CA43 #43CABC
split-complementary
#7843CA #CABC43 #51CA43
monochromatic
#402072 #5B2EA2 #7843CA #9A73D7 #BDA2E5

Accessibility & contrast

On white

6.08
#7843CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#7843CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7843CA
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7843CA#FFFFFF#000000##FFFFFF
##7843CA1.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7843ca;
/* rgb */ color: rgb(120, 67, 202);
/* oklch */ color: oklch(51.9% 0.198 296.9);
Tailwind
colors: {
  custom: {
    50: '#a57bdb',
    500: '#7843ca',
    950: '#000000',
  },
}
SCSS
$custom: #7843ca;
$custom-light: #a57bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#7843ca",
  "rgb": {
    "r": 120,
    "g": 67,
    "b": 202
  },
  "hsl": {
    "h": 263.556,
    "s": 56.017,
    "l": 52.745
  },
  "oklch": {
    "l": 0.51921,
    "c": 0.19834,
    "h": 296.9
  },
  "luminance": 0.12272
}

Semantic roles & 50–950 ramp

primary
#7843CA
secondary
#BBD297
accent
#DF48A4
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7843CA

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

Preview Lab → · Contrast checker → · Palette generator →

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