#4787D7#4787D7

#4787D7 is a mid, vivid cyan. Relative luminance 0.236; OKLCH L 61.9% C 0.138 H 255.1°. Best body text is #000000 at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#4787D7
RGBrgb(71, 135, 215)
HSLhsl(213, 64%, 56%)
HSVhsv(213, 67%, 84%)
CMYKcmyk(67%, 37.2%, 0%, 15.7%)
CIE-LABlab(55.66, 5.06, -47.06)
CIE-LCHlch(55.66, 47.33, 276.14°)
OKLaboklab(61.87% -0.0355 -0.1338)
OKLCHoklch(61.87% 0.138 255.1)
XYZxyz(23.5238, 23.5714, 67.5868)
Luminance0.2357 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4787D7 #D79747
analogous
#47CFD7 #4787D7 #4F47D7
triadic
#4787D7 #D74787 #87D747
tetradic
#4787D7 #D747CF #D79747 #47D74F
square
#4787D7 #D747CF #D79747 #47D74F
split-complementary
#4787D7 #D74F47 #CFD747
monochromatic
#1D4C86 #2868B9 #4787D7 #79A8E2 #ACC9ED

Accessibility & contrast

On white

3.67
#4787D7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.71
#4787D7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4787D7
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4787D7#FFFFFF#000000##000000
##4787D71.003.675.715.71
#FFFFFF3.671.0021.0021.00
#0000005.7121.001.001.00
##0000005.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#638DDA
Deuteranopia (green-blind)
#4E7FD5
Tritanopia (blue-blind)
#009AA5
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #4787d7;
/* rgb */ color: rgb(71, 135, 215);
/* oklch */ color: oklch(61.9% 0.138 255.1);
Tailwind
colors: {
  custom: {
    50: '#89a9e4',
    500: '#4787d7',
    950: '#000000',
  },
}
SCSS
$custom: #4787d7;
$custom-light: #89a9e4;
$custom-dark: #000000;
JSON
{
  "hex": "#4787d7",
  "rgb": {
    "r": 71,
    "g": 135,
    "b": 215
  },
  "hsl": {
    "h": 213.333,
    "s": 64.286,
    "l": 56.078
  },
  "oklch": {
    "l": 0.61872,
    "c": 0.13844,
    "h": 255.1
  },
  "luminance": 0.23574
}

Semantic roles & 50–950 ramp

primary
#4787D7
secondary
#DBC09F
accent
#9D41E7
background
#F9FAFE
surface
#F1F4FC
border
#CBCED5
text
#0D0F15
muted
#7E7F84

Preview Lab

Preview with #4787D7

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

Preview Lab → · Contrast checker → · Palette generator →

#4787D7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva