#7872CB#7872CB

#7872CB is a mid, vivid blue. Relative luminance 0.203; OKLCH L 59.8% C 0.133 H 284.7°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#7872CB
RGBrgb(120, 114, 203)
HSLhsl(244, 46%, 62%)
HSVhsv(244, 44%, 80%)
CMYKcmyk(40.9%, 43.8%, 0%, 20.4%)
CIE-LABlab(52.22, 24.34, -45.55)
CIE-LCHlch(52.22, 51.64, 298.12°)
OKLaboklab(59.76% 0.0337 -0.1286)
OKLCHoklch(59.76% 0.133 284.7)
XYZxyz(24.5395, 20.3386, 59.1211)
Luminance0.2034 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7872CB #C5CB72
analogous
#7299CB #7872CB #A572CB
triadic
#7872CB #CB7872 #72CB78
tetradic
#7872CB #CB7299 #C5CB72 #72CBA5
square
#7872CB #CB7299 #C5CB72 #72CBA5
split-complementary
#7872CB #CBA572 #99CB72
monochromatic
#3A348E #4D45BB #7872CB #A39FDB #CECBEC

Accessibility & contrast

On white

4.14
#7872CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#7872CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7872CB
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7872CB#FFFFFF#000000##000000
##7872CB1.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#527FCE
Deuteranopia (green-blind)
#4F7AC9
Tritanopia (blue-blind)
#608495
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #7872cb;
/* rgb */ color: rgb(120, 114, 203);
/* oklch */ color: oklch(59.8% 0.133 284.7);
Tailwind
colors: {
  custom: {
    50: '#a39adb',
    500: '#7872cb',
    950: '#000000',
  },
}
SCSS
$custom: #7872cb;
$custom-light: #a39adb;
$custom-dark: #000000;
JSON
{
  "hex": "#7872cb",
  "rgb": {
    "r": 120,
    "g": 114,
    "b": 203
  },
  "hsl": {
    "h": 244.045,
    "s": 46.114,
    "l": 62.157
  },
  "oklch": {
    "l": 0.59763,
    "c": 0.13295,
    "h": 284.7
  },
  "luminance": 0.20339
}

Semantic roles & 50–950 ramp

primary
#7872CB
secondary
#DBDDBC
accent
#B92CB0
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0E15
muted
#7F7E83

Preview Lab

Preview with #7872CB

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

Preview Lab → · Contrast checker → · Palette generator →

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