#42A7CC#42A7CC

#42A7CC is a light, moderate cyan. Relative luminance 0.332; OKLCH L 68.5% C 0.107 H 226.0°. Best body text is #000000 at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#42A7CC
RGBrgb(66, 167, 204)
HSLhsl(196, 58%, 53%)
HSVhsv(196, 68%, 80%)
CMYKcmyk(67.6%, 18.1%, 0%, 20%)
CIE-LABlab(64.28, -17.53, -27.43)
CIE-LCHlch(64.28, 32.56, 237.42°)
OKLaboklab(68.48% -0.0742 -0.0767)
OKLCHoklch(68.48% 0.107 226)
XYZxyz(26.9602, 33.1524, 62.0932)
Luminance0.3316 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42A7CC #CC6742
analogous
#42CCAC #42A7CC #4262CC
triadic
#42A7CC #CC42A7 #A7CC42
tetradic
#42A7CC #AC42CC #CC6742 #62CC42
square
#42A7CC #AC42CC #CC6742 #62CC42
split-complementary
#42A7CC #CC4262 #CCAC42
monochromatic
#1F5D74 #2C84A4 #42A7CC #72BDD9 #A2D4E6

Accessibility & contrast

On white

2.75
#42A7CC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.63
#42A7CC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #42A7CC
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42A7CC#FFFFFF#000000##000000
##42A7CC1.002.757.637.63
#FFFFFF2.751.0021.0021.00
#0000007.6321.001.001.00
##0000007.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#93A4CE
Deuteranopia (green-blind)
#8096CC
Tritanopia (blue-blind)
#00B2B3
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #42a7cc;
/* rgb */ color: rgb(66, 167, 204);
/* oklch */ color: oklch(68.5% 0.107 226.0);
Tailwind
colors: {
  custom: {
    50: '#86c1db',
    500: '#42a7cc',
    950: '#000000',
  },
}
SCSS
$custom: #42a7cc;
$custom-light: #86c1db;
$custom-dark: #000000;
JSON
{
  "hex": "#42a7cc",
  "rgb": {
    "r": 66,
    "g": 167,
    "b": 204
  },
  "hsl": {
    "h": 196.087,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.68484,
    "c": 0.1067,
    "h": 226
  },
  "luminance": 0.33155
}

Semantic roles & 50–950 ramp

primary
#42A7CC
secondary
#D3A797
accent
#7047E1
background
#F8FBFD
surface
#F0F7FB
border
#CBD0D4
text
#0C1215
muted
#7D8183

Preview Lab

Preview with #42A7CC

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

Preview Lab → · Contrast checker → · Palette generator →

#42A7CC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva