#CFC792#CFC792

#CFC792 is a very light, moderate yellow. Relative luminance 0.562; OKLCH L 82.3% C 0.070 H 100.5°. Best body text is #000000 at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#CFC792
RGBrgb(207, 199, 146)
HSLhsl(52, 39%, 69%)
HSVhsv(52, 29%, 81%)
CMYKcmyk(0%, 3.9%, 29.5%, 18.8%)
CIE-LABlab(79.72, -5.38, 27.60)
CIE-LCHlch(79.72, 28.12, 101.03°)
OKLaboklab(82.33% -0.0129 0.0693)
OKLCHoklch(82.33% 0.07 100.5)
XYZxyz(51.3442, 56.1887, 35.3293)
Luminance0.5619 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC792 #929ACF
analogous
#CFA992 #CFC792 #B9CF92
triadic
#CFC792 #92CFC7 #C792CF
tetradic
#CFC792 #92CFA9 #929ACF #CF92B9
square
#CFC792 #92CFA9 #929ACF #CF92B9
split-complementary
#CFC792 #92B9CF #A992CF
monochromatic
#A09447 #BCB168 #CFC792 #E2DDBC #F4F3E7

Accessibility & contrast

On white

1.72
#CFC792 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.24
#CFC792 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC792
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC792#FFFFFF#000000##000000
##CFC7921.001.7212.2412.24
#FFFFFF1.721.0021.0021.00
#00000012.2421.001.001.00
##00000012.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1C48E
Deuteranopia (green-blind)
#D4C794
Tritanopia (blue-blind)
#D8C0B9
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #cfc792;
/* rgb */ color: rgb(207, 199, 146);
/* oklch */ color: oklch(82.3% 0.070 100.5);
Tailwind
colors: {
  custom: {
    50: '#ded7b2',
    500: '#cfc792',
    950: '#000000',
  },
}
SCSS
$custom: #cfc792;
$custom-light: #ded7b2;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc792",
  "rgb": {
    "r": 207,
    "g": 199,
    "b": 146
  },
  "hsl": {
    "h": 52.131,
    "s": 38.854,
    "l": 69.216
  },
  "oklch": {
    "l": 0.8233,
    "c": 0.07045,
    "h": 100.5
  },
  "luminance": 0.56188
}

Semantic roles & 50–950 ramp

primary
#CFC792
secondary
#616AA4
accent
#44B234
background
#FEFEFD
surface
#FCFBF7
border
#D5D4D0
text
#151411
muted
#848381

Preview Lab

Preview with #CFC792

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

Preview Lab → · Contrast checker → · Palette generator →

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