#7872CA#7872CA

#7872CA is a mid, vivid blue. Relative luminance 0.203; OKLCH L 59.7% C 0.132 H 284.8°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#7872CA
RGBrgb(120, 114, 202)
HSLhsl(244, 45%, 62%)
HSVhsv(244, 44%, 79%)
CMYKcmyk(40.6%, 43.6%, 0%, 20.8%)
CIE-LABlab(52.16, 24.05, -45.06)
CIE-LCHlch(52.16, 51.08, 298.09°)
OKLaboklab(59.71% 0.0336 -0.1272)
OKLCHoklch(59.71% 0.132 284.8)
XYZxyz(24.4207, 20.2911, 58.4955)
Luminance0.2029 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7872CA #C4CA72
analogous
#7298CA #7872CA #A472CA
triadic
#7872CA #CA7872 #72CA78
tetradic
#7872CA #CA7298 #C4CA72 #72CAA4
square
#7872CA #CA7298 #C4CA72 #72CAA4
split-complementary
#7872CA #CAA472 #98CA72
monochromatic
#3B358D #4D46B9 #7872CA #A39EDB #CDCBEB

Accessibility & contrast

On white

4.15
#7872CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#7872CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7872CA
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7872CA#FFFFFF#000000##000000
##7872CA1.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#527FCD
Deuteranopia (green-blind)
#4F7AC8
Tritanopia (blue-blind)
#608494
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7872ca;
/* rgb */ color: rgb(120, 114, 202);
/* oklch */ color: oklch(59.7% 0.132 284.8);
Tailwind
colors: {
  custom: {
    50: '#a39ada',
    500: '#7872ca',
    950: '#000000',
  },
}
SCSS
$custom: #7872ca;
$custom-light: #a39ada;
$custom-dark: #000000;
JSON
{
  "hex": "#7872ca",
  "rgb": {
    "r": 120,
    "g": 114,
    "b": 202
  },
  "hsl": {
    "h": 244.091,
    "s": 45.361,
    "l": 61.961
  },
  "oklch": {
    "l": 0.59706,
    "c": 0.13154,
    "h": 284.8
  },
  "luminance": 0.20292
}

Semantic roles & 50–950 ramp

primary
#7872CA
secondary
#DADCBC
accent
#B92DAF
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0E15
muted
#7F7E83

Preview Lab

Preview with #7872CA

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

Preview Lab → · Contrast checker → · Palette generator →

#7872CA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva