#7845CC#7845CC

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

Color values

HEX#7845CC
RGBrgb(120, 69, 204)
HSLhsl(263, 57%, 54%)
HSVhsv(263, 66%, 80%)
CMYKcmyk(41.2%, 66.2%, 0%, 20%)
CIE-LABlab(42.17, 50.44, -62.26)
CIE-LCHlch(42.17, 80.13, 309.01°)
OKLaboklab(52.34% 0.0875 -0.1777)
OKLCHoklch(52.34% 0.198 296.2)
XYZxyz(20.7701, 12.6085, 58.4544)
Luminance0.1261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7845CC #99CC45
analogous
#4555CC #7845CC #BC45CC
triadic
#7845CC #CC7845 #45CC78
tetradic
#7845CC #CC4555 #99CC45 #45CCBC
square
#7845CC #CC4555 #99CC45 #45CCBC
split-complementary
#7845CC #CCBC45 #55CC45
monochromatic
#412076 #5B2EA6 #7845CC #9B75D9 #BEA5E6

Accessibility & contrast

On white

5.96
#7845CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#7845CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7845CC
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7845CC#FFFFFF#000000##FFFFFF
##7845CC1.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D0
Deuteranopia (green-blind)
#0062C9
Tritanopia (blue-blind)
#626583
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7845cc;
/* rgb */ color: rgb(120, 69, 204);
/* oklch */ color: oklch(52.3% 0.198 296.2);
Tailwind
colors: {
  custom: {
    50: '#a57cdc',
    500: '#7845cc',
    950: '#000000',
  },
}
SCSS
$custom: #7845cc;
$custom-light: #a57cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#7845cc",
  "rgb": {
    "r": 120,
    "g": 69,
    "b": 204
  },
  "hsl": {
    "h": 262.667,
    "s": 56.962,
    "l": 53.529
  },
  "oklch": {
    "l": 0.52344,
    "c": 0.1981,
    "h": 296.2
  },
  "luminance": 0.12609
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7845CC

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

Preview Lab → · Contrast checker → · Palette generator →

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