#7845CB#7845CB

#7845CB is a mid, vivid violet. Relative luminance 0.126; OKLCH L 52.3% C 0.197 H 296.4°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#7845CB
RGBrgb(120, 69, 203)
HSLhsl(263, 56%, 53%)
HSVhsv(263, 66%, 80%)
CMYKcmyk(40.9%, 66%, 0%, 20.4%)
CIE-LABlab(42.09, 50.18, -61.80)
CIE-LCHlch(42.09, 79.61, 309.08°)
OKLaboklab(52.27% 0.0876 -0.1764)
OKLCHoklch(52.27% 0.197 296.4)
XYZxyz(20.6505, 12.5607, 57.8248)
Luminance0.1256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7845CB #98CB45
analogous
#4555CB #7845CB #BB45CB
triadic
#7845CB #CB7845 #45CB78
tetradic
#7845CB #CB4555 #98CB45 #45CBBB
square
#7845CB #CB4555 #98CB45 #45CBBB
split-complementary
#7845CB #CBBB45 #55CB45
monochromatic
#412175 #5B2EA5 #7845CB #9B75D8 #BDA5E6

Accessibility & contrast

On white

5.98
#7845CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#7845CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7845CB
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7845CB#FFFFFF#000000##FFFFFF
##7845CB1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CF
Deuteranopia (green-blind)
#0062C8
Tritanopia (blue-blind)
#636582
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7845cb;
/* rgb */ color: rgb(120, 69, 203);
/* oklch */ color: oklch(52.3% 0.197 296.4);
Tailwind
colors: {
  custom: {
    50: '#a57cdc',
    500: '#7845cb',
    950: '#000000',
  },
}
SCSS
$custom: #7845cb;
$custom-light: #a57cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#7845cb",
  "rgb": {
    "r": 120,
    "g": 69,
    "b": 203
  },
  "hsl": {
    "h": 262.836,
    "s": 56.303,
    "l": 53.333
  },
  "oklch": {
    "l": 0.52267,
    "c": 0.19694,
    "h": 296.4
  },
  "luminance": 0.12561
}

Semantic roles & 50–950 ramp

primary
#7845CB
secondary
#BDD399
accent
#E048A6
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7845CB

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

Preview Lab → · Contrast checker → · Palette generator →

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