#7870CA#7870CA

#7870CA is a mid, vivid blue. Relative luminance 0.198; OKLCH L 59.3% C 0.134 H 285.6°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#7870CA
RGBrgb(120, 112, 202)
HSLhsl(245, 46%, 62%)
HSVhsv(245, 45%, 79%)
CMYKcmyk(40.6%, 44.6%, 0%, 20.8%)
CIE-LABlab(51.66, 25.25, -45.86)
CIE-LCHlch(51.66, 52.35, 298.84°)
OKLaboklab(59.32% 0.0361 -0.1295)
OKLCHoklch(59.32% 0.134 285.6)
XYZxyz(24.1975, 19.8448, 58.4211)
Luminance0.1985 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7870CA #C2CA70
analogous
#7095CA #7870CA #A570CA
triadic
#7870CA #CA7870 #70CA78
tetradic
#7870CA #CA7095 #C2CA70 #70CAA5
square
#7870CA #CA7095 #C2CA70 #70CAA5
split-complementary
#7870CA #CAA570 #95CA70
monochromatic
#3C348C #4F44B8 #7870CA #A29DDB #CCC9EB

Accessibility & contrast

On white

4.23
#7870CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#7870CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7870CA
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7870CA#FFFFFF#000000##000000
##7870CA1.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F7ECD
Deuteranopia (green-blind)
#4D79C8
Tritanopia (blue-blind)
#608293
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7870ca;
/* rgb */ color: rgb(120, 112, 202);
/* oklch */ color: oklch(59.3% 0.134 285.6);
Tailwind
colors: {
  custom: {
    50: '#a399da',
    500: '#7870ca',
    950: '#000000',
  },
}
SCSS
$custom: #7870ca;
$custom-light: #a399da;
$custom-dark: #000000;
JSON
{
  "hex": "#7870ca",
  "rgb": {
    "r": 120,
    "g": 112,
    "b": 202
  },
  "hsl": {
    "h": 245.333,
    "s": 45.918,
    "l": 61.569
  },
  "oklch": {
    "l": 0.59324,
    "c": 0.13447,
    "h": 285.6
  },
  "luminance": 0.19846
}

Semantic roles & 50–950 ramp

primary
#7870CA
secondary
#D9DCBA
accent
#B92CAD
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0D15
muted
#7F7E83

Preview Lab

Preview with #7870CA

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

Preview Lab → · Contrast checker → · Palette generator →

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