#7872CF#7872CF

#7872CF is a mid, vivid blue. Relative luminance 0.205; OKLCH L 60.0% C 0.139 H 284.3°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#7872CF
RGBrgb(120, 114, 207)
HSLhsl(244, 49%, 63%)
HSVhsv(244, 45%, 81%)
CMYKcmyk(42%, 44.9%, 0%, 18.8%)
CIE-LABlab(52.43, 25.48, -47.48)
CIE-LCHlch(52.43, 53.89, 298.22°)
OKLaboklab(60% 0.0343 -0.1343)
OKLCHoklch(60% 0.139 284.3)
XYZxyz(25.0223, 20.5317, 61.6640)
Luminance0.2053 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7872CF #C9CF72
analogous
#729ACF #7872CF #A672CF
triadic
#7872CF #CF7872 #72CF78
tetradic
#7872CF #CF729A #C9CF72 #72CFA6
square
#7872CF #CF729A #C9CF72 #72CFA6
split-complementary
#7872CF #CFA672 #9ACF72
monochromatic
#393294 #4C44BF #7872CF #A4A0DF #CFCDEE

Accessibility & contrast

On white

4.11
#7872CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#7872CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7872CF
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7872CF#FFFFFF#000000##000000
##7872CF1.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F80D2
Deuteranopia (green-blind)
#4C7ACD
Tritanopia (blue-blind)
#5E8596
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #7872cf;
/* rgb */ color: rgb(120, 114, 207);
/* oklch */ color: oklch(60.0% 0.139 284.3);
Tailwind
colors: {
  custom: {
    50: '#a39ade',
    500: '#7872cf',
    950: '#000000',
  },
}
SCSS
$custom: #7872cf;
$custom-light: #a39ade;
$custom-dark: #000000;
JSON
{
  "hex": "#7872cf",
  "rgb": {
    "r": 120,
    "g": 114,
    "b": 207
  },
  "hsl": {
    "h": 243.871,
    "s": 49.206,
    "l": 62.941
  },
  "oklch": {
    "l": 0.59996,
    "c": 0.13858,
    "h": 284.3
  },
  "luminance": 0.20533
}

Semantic roles & 50–950 ramp

primary
#7872CF
secondary
#DDDFBE
accent
#BD29B3
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0E15
muted
#7F7E83

Preview Lab

Preview with #7872CF

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

Preview Lab → · Contrast checker → · Palette generator →

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