#CBC162#CBC162

#CBC162 is a light, moderate yellow. Relative luminance 0.517; OKLCH L 80.0% C 0.118 H 103.3°. Best body text is #000000 at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#CBC162
RGBrgb(203, 193, 98)
HSLhsl(54, 50%, 59%)
HSVhsv(54, 52%, 80%)
CMYKcmyk(0%, 4.9%, 51.7%, 20.4%)
CIE-LABlab(77.11, -9.06, 48.55)
CIE-LCHlch(77.11, 49.38, 100.57°)
OKLaboklab(79.96% -0.027 0.1145)
OKLCHoklch(79.96% 0.118 103.3)
XYZxyz(45.9045, 51.7198, 19.1177)
Luminance0.5172 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CBC162 #626CCB
analogous
#CB8D62 #CBC162 #A1CB62
triadic
#CBC162 #62CBC1 #C162CB
tetradic
#CBC162 #62CB8D #626CCB #CB62A1
square
#CBC162 #62CB8D #626CCB #CB62A1
split-complementary
#CBC162 #62A1CB #8D62CB
monochromatic
#867E2C #B4A93C #CBC162 #DAD390 #E9E5BE

Accessibility & contrast

On white

1.85
#CBC162 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.34
#CBC162 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CBC162
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CBC162#FFFFFF#000000##000000
##CBC1621.001.8511.3411.34
#FFFFFF1.851.0021.0021.00
#00000011.3421.001.001.00
##00000011.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#CFBB59
Deuteranopia (green-blind)
#D3C166
Tritanopia (blue-blind)
#D8B6AB
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #cbc162;
/* rgb */ color: rgb(203, 193, 98);
/* oklch */ color: oklch(80.0% 0.118 103.3);
Tailwind
colors: {
  custom: {
    50: '#ddd391',
    500: '#cbc162',
    950: '#000000',
  },
}
SCSS
$custom: #cbc162;
$custom-light: #ddd391;
$custom-dark: #000000;
JSON
{
  "hex": "#cbc162",
  "rgb": {
    "r": 203,
    "g": 193,
    "b": 98
  },
  "hsl": {
    "h": 54.286,
    "s": 50.239,
    "l": 59.02
  },
  "oklch": {
    "l": 0.79957,
    "c": 0.11762,
    "h": 103.3
  },
  "luminance": 0.51718
}

Semantic roles & 50–950 ramp

primary
#CBC162
secondary
#444B8D
accent
#5BDA4E
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140D
muted
#84837F

Preview Lab

Preview with #CBC162

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

Preview Lab → · Contrast checker → · Palette generator →

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