#CFC162#CFC162

#CFC162 is a light, moderate yellow. Relative luminance 0.523; OKLCH L 80.3% C 0.118 H 101.0°. Best body text is #000000 at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#CFC162
RGBrgb(207, 193, 98)
HSLhsl(52, 53%, 60%)
HSVhsv(52, 53%, 81%)
CMYKcmyk(0%, 6.8%, 52.7%, 18.8%)
CIE-LABlab(77.45, -7.41, 49.03)
CIE-LCHlch(77.45, 49.59, 98.59°)
OKLaboklab(80.31% -0.0225 0.1155)
OKLCHoklch(80.31% 0.118 101)
XYZxyz(47.0082, 52.2889, 19.1695)
Luminance0.5229 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC162 #6270CF
analogous
#CF8B62 #CFC162 #A6CF62
triadic
#CFC162 #62CFC1 #C162CF
tetradic
#CFC162 #62CF8B #6270CF #CF62A6
square
#CFC162 #62CF8B #6270CF #CF62A6
split-complementary
#CFC162 #62A6CF #8B62CF
monochromatic
#8C7F2B #BBAA39 #CFC162 #DDD491 #ECE6C0

Accessibility & contrast

On white

1.83
#CFC162 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.46
#CFC162 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC162
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC162#FFFFFF#000000##000000
##CFC1621.001.8311.4611.46
#FFFFFF1.831.0021.0021.00
#00000011.4621.001.001.00
##00000011.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0BC59
Deuteranopia (green-blind)
#D4C266
Tritanopia (blue-blind)
#DDB6AB
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #cfc162;
/* rgb */ color: rgb(207, 193, 98);
/* oklch */ color: oklch(80.3% 0.118 101.0);
Tailwind
colors: {
  custom: {
    50: '#e0d391',
    500: '#cfc162',
    950: '#000000',
  },
}
SCSS
$custom: #cfc162;
$custom-light: #e0d391;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc162",
  "rgb": {
    "r": 207,
    "g": 193,
    "b": 98
  },
  "hsl": {
    "h": 52.294,
    "s": 53.171,
    "l": 59.804
  },
  "oklch": {
    "l": 0.80308,
    "c": 0.11764,
    "h": 101
  },
  "luminance": 0.52287
}

Semantic roles & 50–950 ramp

primary
#CFC162
secondary
#434D92
accent
#5EDD4B
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140D
muted
#84837F

Preview Lab

Preview with #CFC162

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

Preview Lab → · Contrast checker → · Palette generator →

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