#7872DB#7872DB

#7872DB is a mid, vivid blue. Relative luminance 0.211; OKLCH L 60.7% C 0.155 H 283.3°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#7872DB
RGBrgb(120, 114, 219)
HSLhsl(243, 59%, 65%)
HSVhsv(243, 48%, 86%)
CMYKcmyk(45.2%, 47.9%, 0%, 14.1%)
CIE-LABlab(53.10, 28.97, -53.21)
CIE-LCHlch(53.10, 60.59, 298.56°)
OKLaboklab(60.72% 0.0358 -0.1511)
OKLCHoklch(60.72% 0.155 283.3)
XYZxyz(26.5455, 21.1410, 69.6860)
Luminance0.2114 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7872DB #D5DB72
analogous
#72A0DB #7872DB #AD72DB
triadic
#7872DB #DB7872 #72DB78
tetradic
#7872DB #DB72A0 #D5DB72 #72DBAD
square
#7872DB #DB72A0 #D5DB72 #72DBAD
split-complementary
#7872DB #DBAD72 #A0DB72
monochromatic
#322BA8 #4941CF #7872DB #A7A3E7 #D5D4F4

Accessibility & contrast

On white

4.02
#7872DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#7872DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7872DB
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7872DB#FFFFFF#000000##000000
##7872DB1.004.025.235.23
#FFFFFF4.021.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4682DF
Deuteranopia (green-blind)
#417BD9
Tritanopia (blue-blind)
#57889C
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #7872db;
/* rgb */ color: rgb(120, 114, 219);
/* oklch */ color: oklch(60.7% 0.155 283.3);
Tailwind
colors: {
  custom: {
    50: '#a49ae7',
    500: '#7872db',
    950: '#000000',
  },
}
SCSS
$custom: #7872db;
$custom-light: #a49ae7;
$custom-dark: #000000;
JSON
{
  "hex": "#7872db",
  "rgb": {
    "r": 120,
    "g": 114,
    "b": 219
  },
  "hsl": {
    "h": 243.429,
    "s": 59.322,
    "l": 65.294
  },
  "oklch": {
    "l": 0.6072,
    "c": 0.15524,
    "h": 283.3
  },
  "luminance": 0.21142
}

Semantic roles & 50–950 ramp

primary
#7872DB
secondary
#E4E6C3
accent
#C71FBD
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100E16
muted
#7F7E84

Preview Lab

Preview with #7872DB

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

Preview Lab → · Contrast checker → · Palette generator →

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