#7870CB#7870CB

#7870CB is a mid, vivid blue. Relative luminance 0.199; OKLCH L 59.4% C 0.136 H 285.5°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#7870CB
RGBrgb(120, 112, 203)
HSLhsl(245, 47%, 62%)
HSVhsv(245, 45%, 80%)
CMYKcmyk(40.9%, 44.8%, 0%, 20.4%)
CIE-LABlab(51.72, 25.54, -46.35)
CIE-LCHlch(51.72, 52.91, 298.85°)
OKLaboklab(59.38% 0.0363 -0.1309)
OKLCHoklch(59.38% 0.136 285.5)
XYZxyz(24.3163, 19.8923, 59.0467)
Luminance0.1989 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7870CB #C3CB70
analogous
#7096CB #7870CB #A670CB
triadic
#7870CB #CB7870 #70CB78
tetradic
#7870CB #CB7096 #C3CB70 #70CBA6
square
#7870CB #CB7096 #C3CB70 #70CBA6
split-complementary
#7870CB #CBA670 #96CB70
monochromatic
#3B338D #4E44BA #7870CB #A29DDB #CDCAEC

Accessibility & contrast

On white

4.22
#7870CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#7870CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7870CB
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7870CB#FFFFFF#000000##000000
##7870CB1.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E7ECE
Deuteranopia (green-blind)
#4C79C9
Tritanopia (blue-blind)
#608294
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7870cb;
/* rgb */ color: rgb(120, 112, 203);
/* oklch */ color: oklch(59.4% 0.136 285.5);
Tailwind
colors: {
  custom: {
    50: '#a399db',
    500: '#7870cb',
    950: '#000000',
  },
}
SCSS
$custom: #7870cb;
$custom-light: #a399db;
$custom-dark: #000000;
JSON
{
  "hex": "#7870cb",
  "rgb": {
    "r": 120,
    "g": 112,
    "b": 203
  },
  "hsl": {
    "h": 245.275,
    "s": 46.667,
    "l": 61.765
  },
  "oklch": {
    "l": 0.59382,
    "c": 0.13588,
    "h": 285.5
  },
  "luminance": 0.19893
}

Semantic roles & 50–950 ramp

primary
#7870CB
secondary
#D9DCBB
accent
#BA2CAD
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0D15
muted
#7F7E83

Preview Lab

Preview with #7870CB

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

Preview Lab → · Contrast checker → · Palette generator →

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