#4787D5#4787D5

#4787D5 is a mid, vivid cyan. Relative luminance 0.235; OKLCH L 61.8% C 0.136 H 254.6°. Best body text is #000000 at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#4787D5
RGBrgb(71, 135, 213)
HSLhsl(213, 63%, 56%)
HSVhsv(213, 67%, 84%)
CMYKcmyk(66.7%, 36.6%, 0%, 16.5%)
CIE-LABlab(55.55, 4.37, -46.10)
CIE-LCHlch(55.55, 46.31, 275.41°)
OKLaboklab(61.76% -0.036 -0.131)
OKLCHoklch(61.76% 0.136 254.6)
XYZxyz(23.2684, 23.4693, 66.2416)
Luminance0.2347 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4787D5 #D59547
analogous
#47CED5 #4787D5 #4E47D5
triadic
#4787D5 #D54787 #87D547
tetradic
#4787D5 #D547CE #D59547 #47D54E
square
#4787D5 #D547CE #D59547 #47D54E
split-complementary
#4787D5 #D54E47 #CED547
monochromatic
#1E4C84 #2968B5 #4787D5 #79A7E0 #ABC8EC

Accessibility & contrast

On white

3.69
#4787D5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.69
#4787D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4787D5
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4787D5#FFFFFF#000000##000000
##4787D51.003.695.695.69
#FFFFFF3.691.0021.0021.00
#0000005.6921.001.001.00
##0000005.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#648CD8
Deuteranopia (green-blind)
#507FD3
Tritanopia (blue-blind)
#0099A4
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #4787d5;
/* rgb */ color: rgb(71, 135, 213);
/* oklch */ color: oklch(61.8% 0.136 254.6);
Tailwind
colors: {
  custom: {
    50: '#89a9e2',
    500: '#4787d5',
    950: '#000000',
  },
}
SCSS
$custom: #4787d5;
$custom-light: #89a9e2;
$custom-dark: #000000;
JSON
{
  "hex": "#4787d5",
  "rgb": {
    "r": 71,
    "g": 135,
    "b": 213
  },
  "hsl": {
    "h": 212.958,
    "s": 62.832,
    "l": 55.686
  },
  "oklch": {
    "l": 0.61757,
    "c": 0.13585,
    "h": 254.6
  },
  "luminance": 0.23472
}

Semantic roles & 50–950 ramp

primary
#4787D5
secondary
#D9BF9E
accent
#9C42E6
background
#F9FAFD
surface
#F1F4FB
border
#CBCED4
text
#0D0F15
muted
#7E7F83

Preview Lab

Preview with #4787D5

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

Preview Lab → · Contrast checker → · Palette generator →

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