#7845CD#7845CD

#7845CD is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.4% C 0.199 H 296.0°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#7845CD
RGBrgb(120, 69, 205)
HSLhsl(263, 58%, 54%)
HSVhsv(263, 66%, 80%)
CMYKcmyk(41.5%, 66.3%, 0%, 19.6%)
CIE-LABlab(42.24, 50.70, -62.72)
CIE-LCHlch(42.24, 80.65, 308.95°)
OKLaboklab(52.42% 0.0874 -0.1791)
OKLCHoklch(52.42% 0.199 296)
XYZxyz(20.8904, 12.6566, 59.0881)
Luminance0.1266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7845CD #9ACD45
analogous
#4556CD #7845CD #BC45CD
triadic
#7845CD #CD7845 #45CD78
tetradic
#7845CD #CD4556 #9ACD45 #45CDBC
square
#7845CD #CD4556 #9ACD45 #45CDBC
split-complementary
#7845CD #CDBC45 #56CD45
monochromatic
#412077 #5B2DA8 #7845CD #9B75DA #BEA5E7

Accessibility & contrast

On white

5.95
#7845CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#7845CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7845CD
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7845CD#FFFFFF#000000##FFFFFF
##7845CD1.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D1
Deuteranopia (green-blind)
#0062CA
Tritanopia (blue-blind)
#626583
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7845cd;
/* rgb */ color: rgb(120, 69, 205);
/* oklch */ color: oklch(52.4% 0.199 296.0);
Tailwind
colors: {
  custom: {
    50: '#a57cdd',
    500: '#7845cd',
    950: '#000000',
  },
}
SCSS
$custom: #7845cd;
$custom-light: #a57cdd;
$custom-dark: #000000;
JSON
{
  "hex": "#7845cd",
  "rgb": {
    "r": 120,
    "g": 69,
    "b": 205
  },
  "hsl": {
    "h": 262.5,
    "s": 57.627,
    "l": 53.725
  },
  "oklch": {
    "l": 0.5242,
    "c": 0.19925,
    "h": 296
  },
  "luminance": 0.12657
}

Semantic roles & 50–950 ramp

primary
#7845CD
secondary
#BED49A
accent
#E147A7
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7845CD

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

Preview Lab → · Contrast checker → · Palette generator →

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