#7852BC#7852BC

#7852BC is a mid, vivid violet. Relative luminance 0.137; OKLCH L 53.1% C 0.161 H 297.2°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#7852BC
RGBrgb(120, 82, 188)
HSLhsl(262, 44%, 53%)
HSVhsv(262, 56%, 74%)
CMYKcmyk(36.2%, 56.4%, 0%, 26.3%)
CIE-LABlab(43.74, 39.09, -50.43)
CIE-LCHlch(43.74, 63.81, 307.78°)
OKLaboklab(53.14% 0.0733 -0.143)
OKLCHoklch(53.14% 0.161 297.2)
XYZxyz(19.8378, 13.6582, 49.1583)
Luminance0.1366 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7852BC #96BC52
analogous
#5261BC #7852BC #AD52BC
triadic
#7852BC #BC7852 #52BC78
tetradic
#7852BC #BC5261 #96BC52 #52BCAD
square
#7852BC #BC5261 #96BC52 #52BCAD
split-complementary
#7852BC #BCAD52 #61BC52
monochromatic
#41296A #5B3A97 #7852BC #9A7ECD #BDAADE

Accessibility & contrast

On white

5.63
#7852BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#7852BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7852BC
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7852BC#FFFFFF#000000##FFFFFF
##7852BC1.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2068C0
Deuteranopia (green-blind)
#2E66BA
Tritanopia (blue-blind)
#68687F
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #7852bc;
/* rgb */ color: rgb(120, 82, 188);
/* oklch */ color: oklch(53.1% 0.161 297.2);
Tailwind
colors: {
  custom: {
    50: '#a384d1',
    500: '#7852bc',
    950: '#000000',
  },
}
SCSS
$custom: #7852bc;
$custom-light: #a384d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7852bc",
  "rgb": {
    "r": 120,
    "g": 82,
    "b": 188
  },
  "hsl": {
    "h": 261.509,
    "s": 44.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.5314,
    "c": 0.1607,
    "h": 297.2
  },
  "luminance": 0.13658
}

Semantic roles & 50–950 ramp

primary
#7852BC
secondary
#BBCC9E
accent
#D454A6
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#0F0B14
muted
#7F7C82

Preview Lab

Preview with #7852BC

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

Preview Lab → · Contrast checker → · Palette generator →

#7852BC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva