#7870CD#7870CD

#7870CD is a mid, vivid blue. Relative luminance 0.200; OKLCH L 59.5% C 0.139 H 285.3°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#7870CD
RGBrgb(120, 112, 205)
HSLhsl(245, 48%, 62%)
HSVhsv(245, 45%, 80%)
CMYKcmyk(41.5%, 45.4%, 0%, 19.6%)
CIE-LABlab(51.82, 26.11, -47.31)
CIE-LCHlch(51.82, 54.04, 298.89°)
OKLaboklab(59.5% 0.0366 -0.1338)
OKLCHoklch(59.5% 0.139 285.3)
XYZxyz(24.5562, 19.9883, 60.3100)
Luminance0.1999 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7870CD #C5CD70
analogous
#7097CD #7870CD #A670CD
triadic
#7870CD #CD7870 #70CD78
tetradic
#7870CD #CD7097 #C5CD70 #70CDA6
square
#7870CD #CD7097 #C5CD70 #70CDA6
split-complementary
#7870CD #CDA670 #97CD70
monochromatic
#3A3290 #4D43BD #7870CD #A39DDD #CECBED

Accessibility & contrast

On white

4.20
#7870CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#7870CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7870CD
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7870CD#FFFFFF#000000##000000
##7870CD1.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D7ED0
Deuteranopia (green-blind)
#4A79CB
Tritanopia (blue-blind)
#5F8395
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7870cd;
/* rgb */ color: rgb(120, 112, 205);
/* oklch */ color: oklch(59.5% 0.139 285.3);
Tailwind
colors: {
  custom: {
    50: '#a399dd',
    500: '#7870cd',
    950: '#000000',
  },
}
SCSS
$custom: #7870cd;
$custom-light: #a399dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7870cd",
  "rgb": {
    "r": 120,
    "g": 112,
    "b": 205
  },
  "hsl": {
    "h": 245.161,
    "s": 48.187,
    "l": 62.157
  },
  "oklch": {
    "l": 0.595,
    "c": 0.13868,
    "h": 285.3
  },
  "luminance": 0.19989
}

Semantic roles & 50–950 ramp

primary
#7870CD
secondary
#DBDDBB
accent
#BB2AAF
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0E15
muted
#7F7E83

Preview Lab

Preview with #7870CD

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

Preview Lab → · Contrast checker → · Palette generator →

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