#7845CF#7845CF

#7845CF is a mid, highly saturated violet. Relative luminance 0.128; OKLCH L 52.6% C 0.202 H 295.6°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#7845CF
RGBrgb(120, 69, 207)
HSLhsl(262, 59%, 54%)
HSVhsv(262, 67%, 81%)
CMYKcmyk(42%, 66.7%, 0%, 18.8%)
CIE-LABlab(42.39, 51.23, -63.63)
CIE-LCHlch(42.39, 81.69, 308.84°)
OKLaboklab(52.57% 0.0871 -0.1818)
OKLCHoklch(52.57% 0.202 295.6)
XYZxyz(21.1334, 12.7538, 60.3677)
Luminance0.1275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7845CF #9CCF45
analogous
#4557CF #7845CF #BD45CF
triadic
#7845CF #CF7845 #45CF78
tetradic
#7845CF #CF4557 #9CCF45 #45CFBD
square
#7845CF #CF4557 #9CCF45 #45CFBD
split-complementary
#7845CF #CFBD45 #57CF45
monochromatic
#41207A #5B2CAB #7845CF #9B76DC #BFA6E8

Accessibility & contrast

On white

5.91
#7845CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#7845CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7845CF
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7845CF#FFFFFF#000000##FFFFFF
##7845CF1.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D3
Deuteranopia (green-blind)
#0062CC
Tritanopia (blue-blind)
#616684
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7845cf;
/* rgb */ color: rgb(120, 69, 207);
/* oklch */ color: oklch(52.6% 0.202 295.6);
Tailwind
colors: {
  custom: {
    50: '#a57cdf',
    500: '#7845cf',
    950: '#000000',
  },
}
SCSS
$custom: #7845cf;
$custom-light: #a57cdf;
$custom-dark: #000000;
JSON
{
  "hex": "#7845cf",
  "rgb": {
    "r": 120,
    "g": 69,
    "b": 207
  },
  "hsl": {
    "h": 262.174,
    "s": 58.974,
    "l": 54.118
  },
  "oklch": {
    "l": 0.52573,
    "c": 0.20156,
    "h": 295.6
  },
  "luminance": 0.12754
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7845CF

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

Preview Lab → · Contrast checker → · Palette generator →

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