#5F7FA2#5F7FA2

#5F7FA2 is a mid, moderate cyan. Relative luminance 0.202; OKLCH L 58.6% C 0.065 H 251.2°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#5F7FA2
RGBrgb(95, 127, 162)
HSLhsl(211, 26%, 50%)
HSVhsv(211, 41%, 64%)
CMYKcmyk(41.4%, 21.6%, 0%, 36.5%)
CIE-LABlab(52.08, -2.00, -22.29)
CIE-LCHlch(52.08, 22.38, 264.88°)
OKLaboklab(58.59% -0.0211 -0.0618)
OKLCHoklch(58.59% 0.065 251.2)
XYZxyz(18.8282, 20.2192, 37.0860)
Luminance0.2022 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7FA2 #A2825F
analogous
#5FA0A2 #5F7FA2 #605FA2
triadic
#5F7FA2 #A25F7F #7FA25F
tetradic
#5F7FA2 #A25FA0 #A2825F #5FA260
square
#5F7FA2 #A25FA0 #A2825F #5FA260
split-complementary
#5F7FA2 #A2605F #A0A25F
monochromatic
#314355 #48617C #5F7FA2 #869EB8 #ACBDCF

Accessibility & contrast

On white

4.16
#5F7FA2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#5F7FA2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F7FA2
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7FA2#FFFFFF#000000##000000
##5F7FA21.004.165.045.04
#FFFFFF4.161.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#7280A4
Deuteranopia (green-blind)
#6979A1
Tritanopia (blue-blind)
#47878B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5f7fa2;
/* rgb */ color: rgb(95, 127, 162);
/* oklch */ color: oklch(58.6% 0.065 251.2);
Tailwind
colors: {
  custom: {
    50: '#8fa4bd',
    500: '#5f7fa2',
    950: '#000000',
  },
}
SCSS
$custom: #5f7fa2;
$custom-light: #8fa4bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7fa2",
  "rgb": {
    "r": 95,
    "g": 127,
    "b": 162
  },
  "hsl": {
    "h": 211.343,
    "s": 26.482,
    "l": 50.392
  },
  "oklch": {
    "l": 0.58587,
    "c": 0.06529,
    "h": 251.2
  },
  "luminance": 0.2022
}

Semantic roles & 50–950 ramp

primary
#5F7FA2
secondary
#BDAF9F
accent
#9665C3
background
#F8FAFB
surface
#F0F3F6
border
#CBCDD0
text
#0D0F12
muted
#7D7F81

Preview Lab

Preview with #5F7FA2

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

Preview Lab → · Contrast checker → · Palette generator →

#5F7FA2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva