#CFCA56#CFCA56

#CFCA56 is a very light, vivid yellow. Relative luminance 0.562; OKLCH L 82.1% C 0.137 H 106.8°. Best body text is #000000 at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#CFCA56
RGBrgb(207, 202, 86)
HSLhsl(58, 56%, 57%)
HSVhsv(58, 58%, 81%)
CMYKcmyk(0%, 2.4%, 58.5%, 18.8%)
CIE-LABlab(79.72, -12.93, 57.14)
CIE-LCHlch(79.72, 58.59, 102.75°)
OKLaboklab(82.07% -0.0396 0.1316)
OKLCHoklch(82.07% 0.137 106.8)
XYZxyz(48.5339, 56.1798, 17.0895)
Luminance0.5618 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFCA56 #565BCF
analogous
#CF8E56 #CFCA56 #97CF56
triadic
#CFCA56 #56CFCA #CA56CF
tetradic
#CFCA56 #56CF8E #565BCF #CF5697
square
#CFCA56 #56CF8E #565BCF #CF5697
split-complementary
#CFCA56 #5697CF #8E56CF
monochromatic
#858126 #B5AF33 #CFCA56 #DDD986 #EAE8B5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CFCA56#FFFFFF#000000##000000
##CFCA561.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)
#DAC349
Deuteranopia (green-blind)
#DCC85C
Tritanopia (blue-blind)
#DDBEB1
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #cfca56;
/* rgb */ color: rgb(207, 202, 86);
/* oklch */ color: oklch(82.1% 0.137 106.8);
Tailwind
colors: {
  custom: {
    50: '#e0d98a',
    500: '#cfca56',
    950: '#000000',
  },
}
SCSS
$custom: #cfca56;
$custom-light: #e0d98a;
$custom-dark: #000000;
JSON
{
  "hex": "#cfca56",
  "rgb": {
    "r": 207,
    "g": 202,
    "b": 86
  },
  "hsl": {
    "h": 57.521,
    "s": 55.76,
    "l": 57.451
  },
  "oklch": {
    "l": 0.82067,
    "c": 0.13741,
    "h": 106.8
  },
  "luminance": 0.56178
}

Semantic roles & 50–950 ramp

primary
#CFCA56
secondary
#3D418C
accent
#4FDF49
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16140C
muted
#84837F

Preview Lab

Preview with #CFCA56

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

Preview Lab → · Contrast checker → · Palette generator →

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