#7845CE#7845CE

#7845CE is a mid, highly saturated violet. Relative luminance 0.127; OKLCH L 52.5% C 0.200 H 295.8°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#7845CE
RGBrgb(120, 69, 206)
HSLhsl(262, 58%, 54%)
HSVhsv(262, 67%, 81%)
CMYKcmyk(41.7%, 66.5%, 0%, 19.2%)
CIE-LABlab(42.32, 50.97, -63.17)
CIE-LCHlch(42.32, 81.17, 308.90°)
OKLaboklab(52.5% 0.0872 -0.1804)
OKLCHoklch(52.5% 0.2 295.8)
XYZxyz(21.0115, 12.7051, 59.7258)
Luminance0.1271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7845CE #9BCE45
analogous
#4557CE #7845CE #BD45CE
triadic
#7845CE #CE7845 #45CE78
tetradic
#7845CE #CE4557 #9BCE45 #45CEBD
square
#7845CE #CE4557 #9BCE45 #45CEBD
split-complementary
#7845CE #CEBD45 #57CE45
monochromatic
#412079 #5B2DA9 #7845CE #9B75DB #BEA6E8

Accessibility & contrast

On white

5.93
#7845CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#7845CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7845CE
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7845CE#FFFFFF#000000##FFFFFF
##7845CE1.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D2
Deuteranopia (green-blind)
#0062CB
Tritanopia (blue-blind)
#626684
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7845ce;
/* rgb */ color: rgb(120, 69, 206);
/* oklch */ color: oklch(52.5% 0.200 295.8);
Tailwind
colors: {
  custom: {
    50: '#a57cde',
    500: '#7845ce',
    950: '#000000',
  },
}
SCSS
$custom: #7845ce;
$custom-light: #a57cde;
$custom-dark: #000000;
JSON
{
  "hex": "#7845ce",
  "rgb": {
    "r": 120,
    "g": 69,
    "b": 206
  },
  "hsl": {
    "h": 262.336,
    "s": 58.298,
    "l": 53.922
  },
  "oklch": {
    "l": 0.52496,
    "c": 0.20041,
    "h": 295.8
  },
  "luminance": 0.12706
}

Semantic roles & 50–950 ramp

primary
#7845CE
secondary
#BFD59A
accent
#E246A8
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7845CE

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

Preview Lab → · Contrast checker → · Palette generator →

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