#7845CA#7845CA

#7845CA is a mid, vivid violet. Relative luminance 0.125; OKLCH L 52.2% C 0.196 H 296.6°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#7845CA
RGBrgb(120, 69, 202)
HSLhsl(263, 56%, 53%)
HSVhsv(263, 66%, 79%)
CMYKcmyk(40.6%, 65.8%, 0%, 20.8%)
CIE-LABlab(42.02, 49.92, -61.34)
CIE-LCHlch(42.02, 79.09, 309.14°)
OKLaboklab(52.19% 0.0877 -0.175)
OKLCHoklch(52.19% 0.196 296.6)
XYZxyz(20.5317, 12.5132, 57.1992)
Luminance0.1251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7845CA #97CA45
analogous
#4554CA #7845CA #BB45CA
triadic
#7845CA #CA7845 #45CA78
tetradic
#7845CA #CA4554 #97CA45 #45CABB
square
#7845CA #CA4554 #97CA45 #45CABB
split-complementary
#7845CA #CABB45 #54CA45
monochromatic
#412174 #5B2FA3 #7845CA #9B75D8 #BDA4E5

Accessibility & contrast

On white

6.00
#7845CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#7845CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7845CA
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7845CA#FFFFFF#000000##FFFFFF
##7845CA1.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CE
Deuteranopia (green-blind)
#0061C7
Tritanopia (blue-blind)
#636482
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7845ca;
/* rgb */ color: rgb(120, 69, 202);
/* oklch */ color: oklch(52.2% 0.196 296.6);
Tailwind
colors: {
  custom: {
    50: '#a57cdb',
    500: '#7845ca',
    950: '#000000',
  },
}
SCSS
$custom: #7845ca;
$custom-light: #a57cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#7845ca",
  "rgb": {
    "r": 120,
    "g": 69,
    "b": 202
  },
  "hsl": {
    "h": 263.008,
    "s": 55.649,
    "l": 53.137
  },
  "oklch": {
    "l": 0.52192,
    "c": 0.19579,
    "h": 296.6
  },
  "luminance": 0.12514
}

Semantic roles & 50–950 ramp

primary
#7845CA
secondary
#BCD299
accent
#DF49A5
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7845CA

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

Preview Lab → · Contrast checker → · Palette generator →

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