#C5C162#C5C162

#C5C162 is a light, moderate yellow. Relative luminance 0.509; OKLCH L 79.4% C 0.118 H 106.6°. Best body text is #000000 at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#C5C162
RGBrgb(197, 193, 98)
HSLhsl(58, 46%, 58%)
HSVhsv(58, 50%, 77%)
CMYKcmyk(0%, 2%, 50.3%, 22.7%)
CIE-LABlab(76.61, -11.53, 47.83)
CIE-LCHlch(76.61, 49.20, 103.55°)
OKLaboklab(79.44% -0.0337 0.113)
OKLCHoklch(79.44% 0.118 106.6)
XYZxyz(44.3016, 50.8933, 19.0426)
Luminance0.5089 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5C162 #6266C5
analogous
#C58F62 #C5C162 #97C562
triadic
#C5C162 #62C5C1 #C162C5
tetradic
#C5C162 #62C58F #6266C5 #C56297
square
#C5C162 #62C58F #6266C5 #C56297
split-complementary
#C5C162 #6297C5 #8F62C5
monochromatic
#7E7B2F #ABA63F #C5C162 #D6D38F #E6E4BB

Accessibility & contrast

On white

1.88
#C5C162 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.18
#C5C162 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C5C162
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5C162#FFFFFF#000000##000000
##C5C1621.001.8811.1811.18
#FFFFFF1.881.0021.0021.00
#00000011.1821.001.001.00
##00000011.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#CFBB59
Deuteranopia (green-blind)
#D1BF67
Tritanopia (blue-blind)
#D1B6AB
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #c5c162;
/* rgb */ color: rgb(197, 193, 98);
/* oklch */ color: oklch(79.4% 0.118 106.6);
Tailwind
colors: {
  custom: {
    50: '#d8d391',
    500: '#c5c162',
    950: '#000000',
  },
}
SCSS
$custom: #c5c162;
$custom-light: #d8d391;
$custom-dark: #000000;
JSON
{
  "hex": "#c5c162",
  "rgb": {
    "r": 197,
    "g": 193,
    "b": 98
  },
  "hsl": {
    "h": 57.576,
    "s": 46.047,
    "l": 57.843
  },
  "oklch": {
    "l": 0.7944,
    "c": 0.11794,
    "h": 106.6
  },
  "luminance": 0.50892
}

Semantic roles & 50–950 ramp

primary
#C5C162
secondary
#454786
accent
#57D652
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140D
muted
#84837F

Preview Lab

Preview with #C5C162

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

Preview Lab → · Contrast checker → · Palette generator →

#C5C162 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva