#7845C8#7845C8

#7845C8 is a mid, vivid violet. Relative luminance 0.124; OKLCH L 52.0% C 0.193 H 297.0°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#7845C8
RGBrgb(120, 69, 200)
HSLhsl(263, 54%, 53%)
HSVhsv(263, 66%, 78%)
CMYKcmyk(40%, 65.5%, 0%, 21.6%)
CIE-LABlab(41.87, 49.40, -60.42)
CIE-LCHlch(41.87, 78.04, 309.27°)
OKLaboklab(52.04% 0.088 -0.1723)
OKLCHoklch(52.04% 0.193 297)
XYZxyz(20.2965, 12.4191, 55.9602)
Luminance0.1242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7845C8 #95C845
analogous
#4553C8 #7845C8 #BA45C8
triadic
#7845C8 #C87845 #45C878
tetradic
#7845C8 #C84553 #95C845 #45C8BA
square
#7845C8 #C84553 #95C845 #45C8BA
split-complementary
#7845C8 #C8BA45 #53C845
monochromatic
#402171 #5B2FA0 #7845C8 #9A74D6 #BDA3E4

Accessibility & contrast

On white

6.03
#7845C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#7845C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7845C8
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7845C8#FFFFFF#000000##FFFFFF
##7845C81.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CC
Deuteranopia (green-blind)
#0061C5
Tritanopia (blue-blind)
#646380
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7845c8;
/* rgb */ color: rgb(120, 69, 200);
/* oklch */ color: oklch(52.0% 0.193 297.0);
Tailwind
colors: {
  custom: {
    50: '#a57cda',
    500: '#7845c8',
    950: '#000000',
  },
}
SCSS
$custom: #7845c8;
$custom-light: #a57cda;
$custom-dark: #000000;
JSON
{
  "hex": "#7845c8",
  "rgb": {
    "r": 120,
    "g": 69,
    "b": 200
  },
  "hsl": {
    "h": 263.359,
    "s": 54.357,
    "l": 52.745
  },
  "oklch": {
    "l": 0.52041,
    "c": 0.19348,
    "h": 297
  },
  "luminance": 0.12419
}

Semantic roles & 50–950 ramp

primary
#7845C8
secondary
#BBD198
accent
#DE4AA4
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7845C8

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

Preview Lab → · Contrast checker → · Palette generator →

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